Resolve "WIP: UTXO Selection and Storage"

This commit is contained in:
Jim Hamill
2025-01-11 08:39:24 +00:00
parent f934216d68
commit 33fd9bac4d
156 changed files with 13304 additions and 4595 deletions
+3 -3
View File
@@ -42,18 +42,18 @@ await blockchainLocal.broadcastTransaction(coinbaseTransaction, {
console.log('walletP2PKH unspents', await walletP2PKH.fetchUnspentDirectives());
console.log(
'walletP2PKHReceive unspents',
await walletP2PKHReceive.fetchUnspentDirectives()
await walletP2PKHReceive.fetchUnspentDirectives(),
);
const sweepTx = await walletP2PKH.sweep(
walletP2PKHReceive.getAddress().toLockscriptBytes()
walletP2PKHReceive.getAddress().toLockscriptBytes(),
);
await blockchainLocal.broadcastTransaction(sweepTx);
console.log('walletP2PKH unspents', await walletP2PKH.fetchUnspentDirectives());
console.log(
'walletP2PKHReceive unspents',
await walletP2PKHReceive.fetchUnspentDirectives()
await walletP2PKHReceive.fetchUnspentDirectives(),
);
console.log(blockchainLocal.deriveUtxoSet());