dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

Fix feature_bip68_sequence - take valid utxo for the stake #854

Closed dsaveliev closed 5 years ago

dsaveliev commented 5 years ago

Fixes #826

Problem description: During the stake construction, it's possible to get utxo from the transaction, which will go to the mempool later on (due to the block invalidation).

In order to fix it, I limited outputs with the number of minimum confirmations (minconf = 2 in listunspent method).

Signed-off-by: Dmitry Saveliev dima@thirdhash.com