fix notarisationTx type
This commit is contained in:
@@ -3392,7 +3392,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
|
|||||||
{
|
{
|
||||||
// do a full block scan to get notarisation position and to enforce a valid notarization is in position 1.
|
// do a full block scan to get notarisation position and to enforce a valid notarization is in position 1.
|
||||||
// if notarisation in the block, must be position 1 and the coinbase must pay notaries.
|
// if notarisation in the block, must be position 1 and the coinbase must pay notaries.
|
||||||
int notarisationTx = komodo_connectblock(true,pindex,*(CBlock *)&block);
|
int32_t notarisationTx = komodo_connectblock(true,pindex,*(CBlock *)&block);
|
||||||
// -1 means that the valid notarization isnt in position 1 or there are too many notarizations in this block.
|
// -1 means that the valid notarization isnt in position 1 or there are too many notarizations in this block.
|
||||||
if ( notarisationTx == -1 )
|
if ( notarisationTx == -1 )
|
||||||
return state.DoS(100, error("ConnectBlock(): Notarization is not in TX position 1 or block contains more than 1 notarization! Invalid Block!"),
|
return state.DoS(100, error("ConnectBlock(): Notarization is not in TX position 1 or block contains more than 1 notarization! Invalid Block!"),
|
||||||
|
|||||||
Reference in New Issue
Block a user