Skip to content

Commit 2b40ce1

Browse files
committed
fix(chain_manager): allow spending own UTXOs
Previously, own UTXOs were mistakenly being tagged as unusable by inserting their value as their timeout.
1 parent f2dce1b commit 2b40ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/src/actors/chain_manager/actor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,8 @@ impl ChainManager {
874874
log::info!("Trying to find and index unspent outputs for {}", own_pkh);
875875
self.chain_state.unspent_outputs_pool.visit_with_pkh(
876876
own_pkh,
877-
|(output_pointer, (vto, _))| {
878-
own_utxos.insert(*output_pointer, vto.value);
877+
|(output_pointer, _)| {
878+
own_utxos.insert(*output_pointer, 0);
879879
log::debug!(
880880
"Found a new unspent output for {}. Total found so far: {}",
881881
own_pkh,

0 commit comments

Comments
 (0)