bip151: remove useless slice.
This commit is contained in:
parent
432ee64713
commit
d2ec66c4b7
@ -212,7 +212,6 @@ BIP151Stream.prototype.encryptSize = function encryptSize(size) {
|
||||
*/
|
||||
|
||||
BIP151Stream.prototype.decryptSize = function decryptSize(data) {
|
||||
data = data.slice(0, 4);
|
||||
this.chacha.encrypt(data);
|
||||
return data.readUInt32LE(0, true);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user