Auto broadcast rogue rpc tx

This commit is contained in:
jl777
2019-02-09 21:55:50 -11:00
parent dbb7d7f6e7
commit cb5f7eaaa1
3 changed files with 33 additions and 18 deletions

View File

@@ -1041,6 +1041,17 @@ CBlockIndex *komodo_blockindex(uint256 hash)
return(pindex);
}
int32_t komodo_blockheight(uint256 hash)
{
BlockMap::const_iterator it; CBlockIndex *pindex = 0;
if ( (it = mapBlockIndex.find(hash)) != mapBlockIndex.end() )
{
if ( (pindex= it->second) != 0 )
return(pindex->GetHeight());
}
return(0);
}
int32_t komodo_checkpoint(int32_t *notarized_heightp,int32_t nHeight,uint256 hash)
{
int32_t notarized_height,MoMdepth; uint256 MoM,notarized_hash,notarized_desttxid; CBlockIndex *notary,*pindex;