Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
a900e3f
Added v20 HF
ogabrielides Dec 28, 2022
0309071
Introduction of HighPerformanceMasternode
ogabrielides Oct 10, 2022
d088d9f
Added LLMQ_TEST_PLATFORM
ogabrielides Dec 14, 2022
8e925c2
implementation
ogabrielides Dec 17, 2022
eaef8bf
Update feature_new_quorum_type_activation.py
ogabrielides Dec 17, 2022
c28cdc3
Masternodes migration
ogabrielides Dec 21, 2022
00d8e8f
linter fixes
ogabrielides Dec 21, 2022
d60a717
adapted rpc_platform_filter for platform llmqtype
ogabrielides Dec 21, 2022
8cdb7a0
Merge regular and highperf protx rpc code
ogabrielides Dec 22, 2022
ac17ee7
cleanup
ogabrielides Dec 28, 2022
3643450
weighted governance vote
ogabrielides Dec 28, 2022
fa5ec81
Revert "Added v20 HF"
ogabrielides Jan 4, 2023
4f4698e
Switched to v19
ogabrielides Jan 4, 2023
df2fdc2
Added type in json
ogabrielides Jan 4, 2023
15bfa61
HPMN payee impl + various fixes
ogabrielides Jan 11, 2023
b966568
Added some comments
ogabrielides Jan 11, 2023
5ff08a0
Cleaner governance weight vote
ogabrielides Jan 13, 2023
1e4c5f1
protocol version bump for CDeterministicMN serialisation
ogabrielides Jan 13, 2023
22e721c
Removed highperf protx. Moved logic inside protx
ogabrielides Jan 14, 2023
0ca868d
Correct collateral checking
ogabrielides Jan 14, 2023
02f6760
functional tests refactoring
ogabrielides Jan 23, 2023
413d435
Adding of Platform fields
ogabrielides Jan 25, 2023
5323b5c
Added release-notes
ogabrielides Jan 26, 2023
b48dbc7
Removed empty lines
ogabrielides Jan 26, 2023
e5b3668
linter fix
ogabrielides Jan 26, 2023
10e838b
correct migration of CDeterministicMNState
ogabrielides Jan 26, 2023
9f0a794
Updated default Platform ports
ogabrielides Jan 27, 2023
f454c83
refactoring
ogabrielides Feb 1, 2023
1313a5b
platformNodeID uniqueness
ogabrielides Feb 1, 2023
82b7776
release notes fix
ogabrielides Feb 1, 2023
291a620
platformNodeID null not allowed
ogabrielides Feb 1, 2023
ff46220
tab fixes
ogabrielides Feb 1, 2023
321d7d9
Added voteWight in getcurrentvotes
ogabrielides Feb 2, 2023
69a259e
refactoring
ogabrielides Feb 2, 2023
6155dee
Update doc/release-notes-5039.md
ogabrielides Feb 2, 2023
316a0c6
use constexpr for collaterals and weight
ogabrielides Feb 3, 2023
8fa0681
use DMNL instead of UTXO in governance
ogabrielides Feb 3, 2023
068b9ec
make coin selection aware of HPMNs
UdjinM6 Feb 2, 2023
4f8e49b
linter fix
ogabrielides Feb 3, 2023
1982db4
check for v19 fork in GetMNPayee
ogabrielides Feb 7, 2023
9feddeb
use irange
ogabrielides Feb 7, 2023
a1c7435
removed useless check + relaxed constraints
ogabrielides Feb 7, 2023
7a30763
use enum for mn type
ogabrielides Feb 7, 2023
8b23b09
reverted lines
ogabrielides Feb 7, 2023
b513c9b
refactor
ogabrielides Feb 7, 2023
e232275
IsLLMQTypeHPMNOnly
ogabrielides Feb 7, 2023
4352c9e
refactor
ogabrielides Feb 7, 2023
aaf72b0
brackets
ogabrielides Feb 8, 2023
ea129c2
evo protx rpc refactor
ogabrielides Feb 8, 2023
851a5fb
clang format
ogabrielides Feb 8, 2023
3b12717
fix/tests: track nConsecutivePayments correctly, add tests
UdjinM6 Feb 9, 2023
dfcf69e
fix: add missing `nConsecutivePayments` to `DMN_STATE_DIFF_ALL_FIELDS`
UdjinM6 Feb 9, 2023
50816b8
fix: tweak `masternodelist` output to match dmnstate
UdjinM6 Feb 9, 2023
26d2d10
fix/tests: fix `masternode payments` rpc, add tests
UdjinM6 Feb 9, 2023
a633718
rebase adjustement
ogabrielides Feb 12, 2023
0448ac4
Include PlatformNodeID in SML
ogabrielides Feb 12, 2023
86440d4
refac: consolidate MasternodeType logic
PastaPastaPasta Feb 11, 2023
9e51c24
add dmn_types.h
PastaPastaPasta Feb 12, 2023
2d51efb
adjustements and cleanups
ogabrielides Feb 13, 2023
d1c1bce
clang formater
ogabrielides Feb 13, 2023
7281e21
Apply suggestions from code review
ogabrielides Feb 13, 2023
f7ab291
check dmn
ogabrielides Feb 13, 2023
45849e3
various refactorin
ogabrielides Feb 14, 2023
82d9f60
various refactoring
ogabrielides Feb 14, 2023
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
18 changes: 18 additions & 0 deletions doc/release-notes-5039.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Added RPCs
--------

The following RPCs were added: `protx register_hpmn`, `protx register_fund_hpmn`, `protx register_prepare_hpmn` and `protx update_service_hpmn`.
These HPMN RPCs correspond to the standard masternode RPCs but have the following additional mandatory arguments: `platformNodeID`, `platformP2PPort` and `platformHTTPPort`.
- `platformNodeID`: Platform P2P node ID, derived from P2P public key.
- `platformP2PPort`: TCP port of Dash Platform peer-to-peer communication between nodes (network byte order).
- `platformHTTPPort`: TCP port of Platform HTTP/API interface (network byte order).
Notes:
- `platformNodeID` must be unique across the network.
- `platformP2PPort`, `platformHTTPPort` and the Core port must be distinct.


Updated RPCs
--------

The RPC's `gobject getcurrentvotes` reply is enriched by adding the vote weight at the end of each line. Possible values are 1 or 4. Example:
`"7cb20c883c6093b8489f795b3ec0aad0d9c2c2821610ae9ed938baaf42fec66d": "277e6345359071410ab691c21a3a16f8f46c9229c2f8ec8f028c9a95c0f1c0e7-1:1670019339:yes:funding:4"`
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ BITCOIN_CORE_H = \
cuckoocache.h \
ctpl_stl.h \
cxxtimer.hpp \
evo/dmn_types.h \
evo/cbtx.h \
evo/deterministicmns.h \
evo/dmnstate.h \
Expand Down
11 changes: 10 additions & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ class CMainParams : public CChainParams {
pchMessageStart[2] = 0x6b;
pchMessageStart[3] = 0xbd;
nDefaultPort = 9999;
nDefaultPlatformP2PPort = 26656;
nDefaultPlatformHTTPPort = 443;
nPruneAfterHeight = 100000;
m_assumed_blockchain_size = 45;
m_assumed_chain_state_size = 1;
Expand Down Expand Up @@ -502,6 +504,8 @@ class CTestNetParams : public CChainParams {
pchMessageStart[2] = 0xca;
pchMessageStart[3] = 0xff;
nDefaultPort = 19999;
nDefaultPlatformP2PPort = 22000;
nDefaultPlatformHTTPPort = 22001;
nPruneAfterHeight = 1000;
m_assumed_blockchain_size = 4;
m_assumed_chain_state_size = 1;
Expand Down Expand Up @@ -710,6 +714,8 @@ class CDevNetParams : public CChainParams {
pchMessageStart[2] = 0xff;
pchMessageStart[3] = 0xce;
nDefaultPort = 19799;
nDefaultPlatformP2PPort = 22100;
nDefaultPlatformHTTPPort = 22101;
nPruneAfterHeight = 1000;
m_assumed_blockchain_size = 0;
m_assumed_chain_state_size = 0;
Expand Down Expand Up @@ -960,6 +966,8 @@ class CRegTestParams : public CChainParams {
pchMessageStart[2] = 0xb7;
pchMessageStart[3] = 0xdc;
nDefaultPort = 19899;
nDefaultPlatformP2PPort = 22200;
nDefaultPlatformHTTPPort = 22201;
nPruneAfterHeight = 1000;
m_assumed_blockchain_size = 0;
m_assumed_chain_state_size = 0;
Expand Down Expand Up @@ -1027,10 +1035,11 @@ class CRegTestParams : public CChainParams {
AddLLMQ(Consensus::LLMQType::LLMQ_TEST_INSTANTSEND);
AddLLMQ(Consensus::LLMQType::LLMQ_TEST_V17);
AddLLMQ(Consensus::LLMQType::LLMQ_TEST_DIP0024);
AddLLMQ(Consensus::LLMQType::LLMQ_TEST_PLATFORM);
consensus.llmqTypeChainLocks = Consensus::LLMQType::LLMQ_TEST;
consensus.llmqTypeInstantSend = Consensus::LLMQType::LLMQ_TEST_INSTANTSEND;
consensus.llmqTypeDIP0024InstantSend = Consensus::LLMQType::LLMQ_TEST_DIP0024;
consensus.llmqTypePlatform = Consensus::LLMQType::LLMQ_TEST;
consensus.llmqTypePlatform = Consensus::LLMQType::LLMQ_TEST_PLATFORM;
consensus.llmqTypeMnhf = Consensus::LLMQType::LLMQ_TEST;

UpdateLLMQTestParametersFromArgs(args, Consensus::LLMQType::LLMQ_TEST);
Expand Down
4 changes: 4 additions & 0 deletions src/chainparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class CChainParams
const Consensus::Params& GetConsensus() const { return consensus; }
const CMessageHeader::MessageStartChars& MessageStart() const { return pchMessageStart; }
uint16_t GetDefaultPort() const { return nDefaultPort; }
uint16_t GetDefaultPlatformP2PPort() const { return nDefaultPlatformP2PPort; }
uint16_t GetDefaultPlatformHTTPPort() const { return nDefaultPlatformHTTPPort; }

const CBlock& GenesisBlock() const { return genesis; }
const CBlock& DevNetGenesisBlock() const { return devnetGenesis; }
Expand Down Expand Up @@ -145,6 +147,8 @@ class CChainParams
std::vector<std::string> vSporkAddresses;
int nMinSporkKeys;
bool fBIP9CheckMasternodesUpgraded;
uint16_t nDefaultPlatformP2PPort;
uint16_t nDefaultPlatformHTTPPort;

void AddLLMQ(Consensus::LLMQType llmqType);
};
Expand Down
Loading