Fix sapling pool persistence and add subsidy/fees to getblock RPC
Lower SPROUT_VALUE_VERSION and SAPLING_VALUE_VERSION constants in chain.h from upstream Zcash values (1001400/1010100) to 1000000. When DragonX was rebranded from HUSH3, CLIENT_VERSION was reset from 3.10.5 to 1.0.0, falling below these thresholds. This caused nSaplingValue to silently skip serialization, so the sapling pool total reset to 0 on every node restart. Explorer nodes should reindex once after upgrading. Add subsidy and fees fields to the getblock RPC response so explorers can display the correct 3 DRGX block reward separately from fees, instead of showing the combined coinbase output as the reward.
This commit is contained in:
@@ -32,8 +32,12 @@ class CChainPower;
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
extern bool fZindex;
|
||||
static const int SPROUT_VALUE_VERSION = 1001400;
|
||||
static const int SAPLING_VALUE_VERSION = 1010100;
|
||||
// These version thresholds control whether nSproutValue/nSaplingValue are
|
||||
// serialized in the block index. They must be <= CLIENT_VERSION or the
|
||||
// values will never be persisted, causing nChainSaplingValue to reset
|
||||
// to 0 after node restart. DragonX CLIENT_VERSION is 1000150 (v1.0.1.50).
|
||||
static const int SPROUT_VALUE_VERSION = 1000000;
|
||||
static const int SAPLING_VALUE_VERSION = 1000000;
|
||||
extern int32_t ASSETCHAINS_LWMAPOS;
|
||||
extern char SMART_CHAIN_SYMBOL[65];
|
||||
extern uint64_t ASSETCHAINS_NOTARY_PAY[];
|
||||
|
||||
Reference in New Issue
Block a user