dashhive / DashJoin.js

Dash CoinJoin JavaScript (Browser & Node) SDK
MIT License
2 stars 0 forks source link

troubleshooting `bad-txns-premature-spend-of-coinbase` #20

Closed coolaj86 closed 2 months ago

coolaj86 commented 2 months ago

My guess: the newly-started group of dashmate regtest nodes isn't ready yet.

{
  code: -26,
  message: 'bad-txns-premature-spend-of-coinbase, tried to spend coinbase at depth 10'
}
coolaj86 commented 2 months ago

I think coinbase transactions requires 100 confirmations before you can spend it. Just do more block generations - pshenmic

[What is a coinbase transaction?] block reward transaction basically. and other stuff. the first transaction in the block - pshenmic - pshenmic

https://learnmeabitcoin.com/technical/mining/coinbase-transaction/

coolaj86 commented 2 months ago

Solution

Just gonna run generatetoaddress a bunch more times to ramp up the block count and unlock the funds for spending.