Skip to content

Conversation

codablock
Copy link

Currently SPV nodes have no chance to figure out which MN signed a lock vote. This is because only the collateralOutpoint of the MN is included in the vote, which is not part of the DIP4 coinbase commitment and also not in the p2p messages.

This PR adds the proTxHash of the DIP3 MN to the vote, which should allow SPV clients to verify lock votes against the deterministic MN list.

Currently, the added field depends on proto version 70212, which will cause some propagation issues on testnet until enough nodes have upgraded, simply because all nodes are already at 70212. To avoid this, we could add a proto bump for this change. @UdjinM6 what do you think?

@QuantumExplorer
Copy link
Member

+1 for proto bump :)

@codablock
Copy link
Author

Hmm, while adding the proto bump I realized that this won't help actually, as signatures would be invalid when sent to non-upgraded nodes. I'll make the field dependent on spork15 activation now.

@codablock
Copy link
Author

Updated the PR so that it uses spork15 to determine if the field should be included or not

@UdjinM6 UdjinM6 added this to the 13.0 milestone Nov 23, 2018
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link

@nmarley nmarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@codablock codablock merged commit fa8f4a1 into dashpay:develop Nov 23, 2018
@codablock codablock deleted the pr_dip3_protxhashix branch November 23, 2018 15:33
Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

post-utACK

thephez added a commit to dash-docs/dash-docs that referenced this pull request Dec 13, 2018
masternodeProTxHash (dashpay/dash#2484)
quorumModifierHash (dashpay/dash#2505)
thephez added a commit to dash-docs/dash-docs that referenced this pull request Dec 26, 2018
* Content - RPC - Update quick reference

* RPC - Update getblockchaininfo to show BIP-9 progress

Related to dashpay/dash#2435

* RPC - Update gobject prepare with new params

Use-IS (dashpay/dash#2452)
Use specific UTXO for fee (dashpay/dash#2482)

* RPC - Update mode name

* RPC - Update protx default mode

dashpay/dash#2513

* Content - Add spork 17

* Content - Special transactions

Add info for Quorum commitment
Remove messages not in 13.0 (SubTx)

* P2P - Add new txlvote fields

masternodeProTxHash (dashpay/dash#2484)
quorumModifierHash (dashpay/dash#2505)

* RPC - Update protx list

Make all options follow the same parameter format (dashpay/dash#2559)

* Content - version bump

0.13.0.0 bumped to 70213 (dashpay/dash#2557)

* Guide - PrivateSend dstx message limit

Up to 5 simultaneous dstxs per MN allowed (dashpay/dash#2552)

* RPC - Update getblock

Add missing versionHex field (dashpay/dash@e7d9ffa)
Change to use verbosity syntax (dashpay/dash#2506 and
bitcoin/bitcoin#8704)

* P2P - Add qfcommit message (no hexdump example)

DIP6 quorum final commitment (dashpay/dash#2477)

* P2P - qfcommit typo

Change description of llmqType field

* P2P - Special tx payload size clarification

* Guide - Update MN payment description

Related to dashpay/dash#2258

* Guide - fix broken link

* Guide - Update some example txs

Change to hashes on the chain following the 12.3.4 reset

* P2P - Add QcTx hexdump

* P2P - DIP4 message updates

Add SML entry
Update hexdump to include new fields
Add getmnlistd and mnlistdiff to cross ref

* P2P - minor DIP3-related comments
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Jun 29, 2020
* Introduce proTxHash to CActiveMasternodeInfo

* Include masternodeProTxHash in CTxLockVote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants