Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use next available key on duplicate coinbase commitment (#2737)
If a coinbase commitment hits a duplication and there is no transactions to mine, it is possible that coinbase cannot be built for quite a long time. This change tries to build coinbase with an empty key identifier immediately in this case. The listening wallet will then use the next available key to build a coinbase commitment, which is different from the previous one and is unlikely to hit the duplication.
- Loading branch information