hush_makeopret
This commit is contained in:
@@ -543,7 +543,7 @@ int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t
|
||||
return(retval);
|
||||
}
|
||||
|
||||
CScript komodo_makeopret(CBlock *pblock, bool fNew)
|
||||
CScript hush_makeopret(CBlock *pblock, bool fNew)
|
||||
{
|
||||
std::vector<uint256> vLeaves;
|
||||
vLeaves.push_back(pblock->hashPrevBlock);
|
||||
@@ -673,7 +673,7 @@ uint32_t komodo_txtime2(uint64_t *valuep,uint256 hash,int32_t n,char *destaddr)
|
||||
bool hush_checkopret(CBlock *pblock, CScript &merkleroot)
|
||||
{
|
||||
merkleroot = pblock->vtx.back().vout.back().scriptPubKey;
|
||||
return(merkleroot.IsOpReturn() && merkleroot == komodo_makeopret(pblock, false));
|
||||
return(merkleroot.IsOpReturn() && merkleroot == hush_makeopret(pblock, false));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -674,7 +674,7 @@ int32_t hush_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33,ui
|
||||
int32_t hush_currentheight();
|
||||
void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height);
|
||||
bool hush_checkopret(CBlock *pblock, CScript &merkleroot);
|
||||
CScript komodo_makeopret(CBlock *pblock, bool fNew);
|
||||
CScript hush_makeopret(CBlock *pblock, bool fNew);
|
||||
extern int32_t HUSH_CHOSEN_ONE;
|
||||
extern char SMART_CHAIN_SYMBOL[HUSH_SMART_CHAIN_MAXLEN];
|
||||
#define KOMODO_ELECTION_GAP 2000
|
||||
|
||||
Reference in New Issue
Block a user