-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop node from using P2PKH outputs for staking #1002
Conversation
Signed-off-by: Matteo Sumberaz <[email protected]>
Signed-off-by: Matteo Sumberaz <[email protected]>
Signed-off-by: Matteo Sumberaz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 6d79a31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 6d79a31
for i in range(0, len(nodes)): | ||
if i+1 < len(nodes): | ||
disconnect_nodes_bi(nodes, i, i + 1) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understood the usage of this function but let's say if node 0 is connected to node 2, they won't be disconnected.
Shouldn't it be:
for (a, b) in itertools.combinations(nodes, 2):
disconnect_nodes_bi(nodes, a, b)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 6d79a31
Signed-off-by: Matteo Sumberaz <[email protected]>
This PR breaks a lot of tests still relying on P2PKH being a stakeable coin. This work is continued in another PR #1025. |
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