diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index c8fc03980..cc005d9f8 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -650,6 +650,22 @@ int32_t komodo_bannedset(int32_t *indallvoutsp,uint256 *array,int32_t max) void komodo_passport_iteration(); +uint64_t komodo_commission(const CBlock &block) +{ + int32_t i,j,n,txn_count; uint64_t total = 0; + txn_count = block.vtx.size(); + for (i=0; i 1 ) { - script = (uint8_t *)block.vtx[0].vout[0].scriptPubKey.data(); + script = (uint8_t *)block.vtx[0].vout[1].scriptPubKey.data(); if ( script[0] != 33 || script[34] != OP_CHECKSIG || memcmp(script+1,ASSETCHAINS_OVERRIDE_PUBKEY33,33) != 0 ) return(-1); - total = 0; - for (i=1; i