Fix coinbase address type error

This commit is contained in:
Mononaut committed 2024-06-25 02:20:44 +00:00
1 parent 4fbdf92f0c
commit 3e057f2db1
1 file changed
+1 -1
+1 -1
View File
@@ -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