Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
00af3c9
Remove CActiveLegacyMasternodeManager
codablock Dec 17, 2018
d816951
Remove sentinelping RPC
codablock Dec 17, 2018
19f1fa8
Remove unused P2P messages and inv types
codablock Dec 17, 2018
b1f6285
Remove MNB/MNP/MNVERIFY related code from masternode(man).h/cpp
codablock Dec 17, 2018
d8ac0cf
Remove all legacy code regarding block MN payee voting
codablock Dec 17, 2018
9180d2e
Remove MASTERNODE_SYNC_LIST and MASTERNODE_SYNC_MNW states
codablock Dec 17, 2018
84ab5c3
Remove unsupported masternode RPCs
codablock Dec 17, 2018
400289a
Remove UpdateLastPaid methods
codablock Dec 17, 2018
0f02753
Remove duplicate deterministicmns.h include
codablock Dec 17, 2018
3b22d95
Remove masternode.conf support
codablock Dec 17, 2018
a4dc3ac
Remove legacy MN lists support from masternode list GUI
codablock Dec 17, 2018
1e7d28a
Remove unnecessary AskForMN call
codablock Dec 17, 2018
c917d2a
Remove compatibility code in CPrivateSendQueue::GetSignatureHash
codablock Dec 17, 2018
9b4ca35
Remove check for IsDeterministicMNsSporkActive in "masternode status"
codablock Dec 18, 2018
104d73a
Don't add locally calculated MN payee in case GetBlockTxOuts failed
codablock Dec 17, 2018
05b2746
Move CMasternode::IsValidNetAddr to CActiveDeterministicMasternodeMan…
codablock Dec 17, 2018
6ec2754
Remove use of CMasternode::CheckCollateral in governance code
codablock Dec 17, 2018
18e5c71
Remove uses of MASTERNODE_SENTINEL_PING_MAX_SECONDS/MASTERNODE_SENTIN…
codablock Dec 18, 2018
c47968c
Remove support for "-masternodeprivkey"
codablock Dec 18, 2018
4d2c308
Remove pre-DIP3 vote cleanup
codablock Dec 18, 2018
1852fe1
Remove compatibility code for quorumModifierHash/masternodeProTxHash
codablock Dec 18, 2018
f79db7a
Remove check for invalid nBlockHeight in CMasternodePayments::GetBloc…
codablock Dec 18, 2018
08a2df1
Remove ECDSA based Sign/CheckSignature from CGovernanceObject
codablock Dec 18, 2018
33ca3cc
Always add superblock and MN reward payments into new block
codablock Dec 18, 2018
72414a2
Always check block payees (except if fLiteMode==true)
codablock Dec 18, 2018
2a76f44
Always allow superblock and MN payees in same block
codablock Dec 18, 2018
2b2e41f
Remove/Fix a few references to masternode.conf and related stuff
codablock Dec 18, 2018
de26487
Implement NotifyMasternodeListChanged signal and call governance main…
codablock Dec 17, 2018
939333b
Remove non-DIP3 code path from CMasternodeMan::Find
codablock Dec 28, 2018
8e2a96d
Remove remaining unused code from CMasternode/CMasternodeMan
codablock Dec 28, 2018
7098b69
Always load governance.dat on startup
codablock Dec 17, 2018
c4018c0
Mine an empty block instead of incrementing nHeight from chain tip in…
codablock Dec 28, 2018
545fa63
Skip MN payments verification on historical blocks (pre-DIP3 blocks)
codablock Dec 31, 2018
25d9dcb
Remove unused state and CollateralStatus enums
codablock Jan 2, 2019
8b8cd6e
Unconditionally return false from IsBlockPayeeValid when IsTransactio…
codablock Jan 2, 2019
4acc357
Add override keyword to CDSNotificationInterface::NotifyMasternodeLis…
codablock Jan 2, 2019
392d119
Fix help for masternodelist status (POSE_BANNED and no OUTPOINT_SPENT)
codablock Jan 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 0 additions & 88 deletions dash-docs/protocol-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,52 +69,6 @@ Bitcoin Public Key https://bitcoin.org/en/glossary/public-key

## Message Types

### MNANNOUNCE - "mnb"

CMasternodeBroadcast

Whenever a masternode comes online or a client is syncing, they will send this message which describes the masternode entry and how to validate messages from it.

| Field Size | Field Name | Data type | Description |
| ---------- | ----------- | --------- | ---------- |
| 36 | outpoint | [COutPoint](#coutpoint) | The unspent output which is holding 1000 DASH
| # | addr | [CService](#cservice) | IPv4 address of the masternode
| 33-65 | pubKeyCollateralAddress | [CPubKey](#cpubkey) | CPubKey of the main 1000 DASH unspent output
| 33-65 | pubKeyMasternode | [CPubKey](#cpubkey) | CPubKey of the secondary signing key (For all other messaging other than announce message)
| 71-73 | sig | char[] | Signature of this message (verifiable via pubKeyCollateralAddress)
| 8 | sigTime | int64_t | Time which the signature was created
| 4 | nProtocolVersion | int | The protocol version of the masternode
| # | lastPing | [CMasternodePing](#mnping---mnp) | The last known ping of the masternode

### MNPING - "mnp"

CMasternodePing

Every few minutes, masternodes ping the network with a message that propagates the whole network.

| Field Size | Field Name | Data type | Description |
| ---------- | ----------- | --------- | --------- |
| 36 | masternodeOutpoint | [COutPoint](#coutpoint) | The unspent output of the masternode which is signing the message
| 32 | blockHash | uint256 | Current chaintip blockhash minus 12
| 8 | sigTime | int64_t | Signature time for this ping
| 71-73 | vchSig | char[] | Signature of this message by masternode (verifiable via pubKeyMasternode)
| 1 | fSentinelIsCurrent | bool | true if last sentinel ping was current
| 4 | nSentinelVersion | uint32_t | The version of Sentinel running on the masternode which is signing the message
| 4 | nDaemonVersion | uint32_t | The version of dashd of the masternode which is signing the message (i.e. CLIENT_VERSION)

### MASTERNODEPAYMENTVOTE - "mnw"

CMasternodePaymentVote

When a new block is found on the network, a masternode quorum will be determined and those 10 selected masternodes will issue a masternode payment vote message to pick the next winning node.

| Field Size | Field Name | Data type | Description |
| ---------- | ----------- | --------- | ---------- |
| 36 | masternodeOutpoint | [COutPoint](#coutpoint) | The unspent output of the masternode which is signing the message
| 4 | nBlockHeight | int | The blockheight which the payee should be paid
| ? | payeeAddress | CScript | The address to pay to
| 71-73 | sig | char[] | Signature of the masternode which is signing the message

### DSTX - "dstx"

CDarksendBroadcastTx
Expand Down Expand Up @@ -265,26 +219,6 @@ Spork

## Undocumented messages

### MASTERNODEPAYMENTBLOCK - "mnwb"

Masternode Payment Block

*NOTE: Per src/protocol.cpp, there is no message for this (only inventory)*

### MNVERIFY - "mnv"

Masternode Verify

| Field Size | Field Name | Data type | Description |
| ---------- | ----------- | --------- | ---------- |
| 36 | masternodeOutpoint1 | [COutPoint](#coutpoint) | The unspent output which is holding 1000 DASH for masternode 1
| 36 | masternodeOutpoint2 | [COutPoint](#coutpoint) | The unspent output which is holding 1000 DASH for masternode 2
| # | addr | [CService](#cservice) | IPv4 address / port of the masternode
| 4 | nonce | int | Nonce
| 4 | nBlockHeight | int | The blockheight
| 66* | vchSig1 | char[] | Signature of by masternode 1 (unclear if 66 is the correct size, but this is what it appears to be in most cases)
| 66* | vchSig2 | char[] | Signature of by masternode 2 (unclear if 66 is the correct size, but this is what it appears to be in most cases)

### DSFINALTX - "dsf"

Darksend Final Transaction
Expand Down Expand Up @@ -312,16 +246,6 @@ Governance Sync
| 32 | nHash | uint256 | |
| # | filter | CBloomFilter | |

### DSEG - "dseg"

Masternode List/Entry Sync

Get Masternode list or specific entry

| Field Size | Field Name | Data type | Description |
| ---------- | ----------- | --------- | ---------- |
| 36 | masternodeOutpoint | [COutPoint](#coutpoint) | The unspent output which is holding 1000 DASH

### SYNCSTATUSCOUNT - "ssc"

Sync Status Count
Expand All @@ -335,18 +259,6 @@ Sync Status Count

| Item ID | Name | Description |
| ---------- | ---------- | ----------- |
| 2 | MASTERNODE_SYNC_LIST | |
| 3 | MASTERNODE_SYNC_MNW | |
| 4 | MASTERNODE_SYNC_GOVERNANCE | |
| 10 | MASTERNODE_SYNC_GOVOBJ | |
| 11 | MASTERNODE_SYNC_GOVOBJ_VOTE | |

### MASTERNODEPAYMENTSYNC - "mnget"

Masternode Payment Sync

| Field Size | Field Name | Data type | Description |
| ---------- | ----------- | --------- | ---------- |
| 4 | nMnCount | int | | (DEPRECATED)

*NOTE: There are no fields in this mesasge starting from protocol 70209*
2 changes: 0 additions & 2 deletions doc/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* fee_estimates.dat: stores statistics used to estimate minimum transaction fees and priorities required for confirmation; since 0.10.0
* mempool.dat: dump of the mempool's transactions; since 0.14.0.
* governance.dat: stores data for governance obgects
* masternode.conf: contains configuration settings for remote masternodes
* mncache.dat: stores data for masternode list
* mnpayments.dat: stores data for masternode payments
* netfulfilled.dat: stores data about recently made network requests
* peers.dat: peer IP address database (custom format); since 0.7.0
* wallet.dat: personal wallet (BDB) with keys and transactions
Expand Down
133 changes: 0 additions & 133 deletions doc/guide-startmany.md

This file was deleted.

2 changes: 1 addition & 1 deletion doc/masternode-budget.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ The following RPC commands are supported:
- nextsuperblocksize - Get superblock size for a given blockheight
- projection - Show the projection of which proposals will be paid the next cycle
- vote - Vote on a proposal by single masternode (using dash.conf setup)
- vote-many - Vote on a proposal by all masternodes (using masternode.conf setup)
- vote-many - Vote on a proposal by all masternodes for which the voting key is in the wallet
- vote-alias - Vote on a proposal by alias
- mnfinalbudget "command"... ( "passphrase" )
- vote-many - Vote on a finalized budget
Expand Down
29 changes: 0 additions & 29 deletions doc/masternode_conf.md

This file was deleted.

2 changes: 0 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ BITCOIN_CORE_H = \
masternode-payments.h \
masternode-sync.h \
masternodeman.h \
masternodeconfig.h \
memusage.h \
merkleblock.h \
messagesigner.h \
Expand Down Expand Up @@ -256,7 +255,6 @@ libdash_server_a_SOURCES = \
masternode.cpp \
masternode-payments.cpp \
masternode-sync.cpp \
masternodeconfig.cpp \
masternodeman.cpp \
merkleblock.cpp \
messagesigner.cpp \
Expand Down
Loading