Add HAC option -ac_minopreturnfee to change OP_RETURN fee per tx, regardless of tx size, default is 1 coin
This commit is contained in:
@@ -118,6 +118,7 @@ public:
|
||||
|
||||
extern int8_t ASSETCHAINS_ADAPTIVEPOW;
|
||||
extern uint32_t ASSETCHAINS_RANDOMX;
|
||||
extern uint32_t ASSETCHAINS_MINOPRETURNFEE;
|
||||
extern bool fRandomXDebug;
|
||||
extern std::string devtax_scriptpub_for_height(uint32_t nHeight);
|
||||
|
||||
@@ -521,6 +522,11 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
// Opret spam limits
|
||||
CAmount opretMinFee = 1 * COIN;
|
||||
|
||||
// Set with -ac_minopreturnfee
|
||||
if (ASSETCHAINS_MINOPRETURNFEE > 0) {
|
||||
opretMinFee = ASSETCHAINS_MINOPRETURNFEE;
|
||||
}
|
||||
|
||||
{
|
||||
bool fSpamTx = false;
|
||||
unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
|
||||
|
||||
Reference in New Issue
Block a user