Open peter-sanderson opened 7 months ago
coinbase input can be spent after 100 confirmations
i dont exactly remember the reason, but it's like that since forever :)
edit: the reason is this:
Coinbase UTXOs have this field set to true, however, due to performance reasons, it will return only
up to the minimum Coinbase confirmations limit (100).
After this limit, UTXOs are not detected as Coinbase.
@szymonlesisz thanks!
It would be good to have it somehow communicated in the UI. This must be a problem for all coinbase transactions.
Filtering happens here: packages/utxo-lib/src/coinselect/coinselectUtils.ts
in the filterCoinbase
method.
Describe the bug When I mine a block on regtest (using Trezor Emulator - the
trezor-user-env
), the 25 coins that are a block reward cannot be spend.Info:
How to reproduce Steps to reproduce the behavior:
trezor-user-env
, start Bridge, start bridge Trezor Ttrezor-user-env
Expected behavior It shall be possible to sand amound <= 25 coins
Screenshots![image](https://github.com/trezor/trezor-suite/assets/152899911/cf457d82-035e-417f-ac12-2154ad34bd04)
Additional context It works with coins that are just send from Regtest account.![image](https://github.com/trezor/trezor-suite/assets/152899911/cb0c75d5-b7ac-44bc-8e87-4e4a0c118986)