Resolve "WIP: UTXO Selection and Storage"
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user