@@ -2944,7 +2944,7 @@ int32_t dilithium_Qmsghash(uint8_t *msg,CTransaction tx,std::vector<uint256> vou
|
|||||||
for (i=0; i<numvouts-1; i++)
|
for (i=0; i<numvouts-1; i++)
|
||||||
vouts.push_back(tx.vout[i]);
|
vouts.push_back(tx.vout[i]);
|
||||||
data << E_MARSHAL(ss << vintxids << vinprevns << vouts << voutpubtxids);
|
data << E_MARSHAL(ss << vintxids << vinprevns << vouts << voutpubtxids);
|
||||||
fprintf(stderr,"size of data.%d\n",(int32_t)data.size());
|
//fprintf(stderr,"size of data.%d\n",(int32_t)data.size());
|
||||||
hash = Hash(data.begin(),data.end());
|
hash = Hash(data.begin(),data.end());
|
||||||
memcpy(msg,&hash,sizeof(hash));
|
memcpy(msg,&hash,sizeof(hash));
|
||||||
return(0);
|
return(0);
|
||||||
|
|||||||
@@ -1808,7 +1808,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
|
|||||||
CAmount nValueOut = tx.GetValueOut();
|
CAmount nValueOut = tx.GetValueOut();
|
||||||
CAmount nFees = nValueIn-nValueOut;
|
CAmount nFees = nValueIn-nValueOut;
|
||||||
double dPriority = view.GetPriority(tx, chainActive.Height());
|
double dPriority = view.GetPriority(tx, chainActive.Height());
|
||||||
if ( KOMODO_VALUETOOBIG(nValueOut - 777777*COIN) != 0 ) // some room for blockreward and txfees
|
if ( nValueOut > 777777*COIN && KOMODO_VALUETOOBIG(nValueOut - 777777*COIN) != 0 ) // some room for blockreward and txfees
|
||||||
return state.DoS(100, error("AcceptToMemoryPool: GetValueOut too big"),REJECT_INVALID,"tx valueout is too big");
|
return state.DoS(100, error("AcceptToMemoryPool: GetValueOut too big"),REJECT_INVALID,"tx valueout is too big");
|
||||||
|
|
||||||
// Keep track of transactions that spend a coinbase, which we re-scan
|
// Keep track of transactions that spend a coinbase, which we re-scan
|
||||||
|
|||||||
Reference in New Issue
Block a user