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

Stop node from using P2PKH outputs for staking #1002

Closed Gnappuraz closed 5 years ago

Gnappuraz commented 5 years ago

At the moment GetStakeableCoins() still returns P2PKH coins, that we cannot use to sign a segwit coinbase. This leads to nodes creating blocks but then discarding them because they can't sign them.

Fixes #997

Gnappuraz commented 5 years ago

This PR breaks a lot of tests still relying on P2PKH being a stakeable coin. This work is continued in another PR https://github.com/dtr-org/unit-e/pull/1025.