mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 11:36:07 +01:00
Fix coinbase address type error
This commit is contained in:
parent
4fbdf92f0c
commit
3e057f2db1
1 changed files with 1 additions and 1 deletions
|
@ -724,7 +724,7 @@ class Blocks {
|
|||
}
|
||||
|
||||
const coinbaseTx = await bitcoinApi.$getCoinbaseTx(hash);
|
||||
const addresses = new Set<string>(coinbaseTx.vout.map(v => v.scriptpubkey_address).filter(a => a));
|
||||
const addresses = new Set<string>(coinbaseTx.vout.map(v => v.scriptpubkey_address).filter(a => a) as string[]);
|
||||
await blocksRepository.$saveCoinbaseAddresses(hash, [...addresses]);
|
||||
|
||||
// Logging
|
||||
|
|
Loading…
Add table
Reference in a new issue