Browse Source

fix bug introduced by #4eb3a853

umbrel
kenshin-samourai 4 years ago
parent
commit
625e905de7
  1. 6
      tracker/block.js

6
tracker/block.js

@ -28,8 +28,10 @@ class Block extends TransactionsBundle {
this.header = header
try {
const block = bitcoin.Block.fromHex(hex)
this.transactions = block.transactions
if (hex != null) {
const block = bitcoin.Block.fromHex(hex)
this.transactions = block.transactions
}
} catch (e) {
Logger.error(e, 'Tracker : Block()')
Logger.error(null, header)

Loading…
Cancel
Save