merkleblock: minor. style.
This commit is contained in:
parent
7de854ce3f
commit
de9f37b290
@ -522,7 +522,6 @@ MerkleBlock.fromBlock = function fromBlock(block, filter) {
|
||||
|
||||
MerkleBlock.fromHashes = function fromHashes(block, hashes) {
|
||||
const filter = new Set();
|
||||
const matches = [];
|
||||
|
||||
for (let hash of hashes) {
|
||||
if (Buffer.isBuffer(hash))
|
||||
@ -530,6 +529,8 @@ MerkleBlock.fromHashes = function fromHashes(block, hashes) {
|
||||
filter.add(hash);
|
||||
}
|
||||
|
||||
const matches = [];
|
||||
|
||||
for (const tx of block.txs) {
|
||||
const hash = tx.hash('hex');
|
||||
matches.push(filter.has(hash) ? 1 : 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user