Skip to content

Commit

Permalink
Buffer txstate
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv committed Jan 14, 2019
1 parent 9f1c86e commit 73aba3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/txstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function prepareLegacyTX(tx, key, prev) {

// TODO: remove after bcoin@next
if (typeof prevoutKey === 'string')
prevoutKey = Buffer.from(prevoutKey, 'hex');
prevoutKey = Buffer.from(prevoutKey.padEnd(66, '0'), 'hex');

if (prevoutKey.equals(key))
input.script = prev;
Expand Down

0 comments on commit 73aba3d

Please sign in to comment.