return(seed);
}
-uint32_t komodo_txtime(uint256 hash)
+uint32_t komodo_txtime(uint64_t *valuep,uint256 hash,int32_t n)
{
CTransaction tx;
uint256 hashBlock;
+ *valuep = 0;
if (!GetTransaction(hash, tx,
#ifndef KOMODO_ZCASH
Params().GetConsensus(),
hashBlock, true))
{
//printf("null GetTransaction\n");
+ if ( n < tx.vout.size() )
+ *valuep = tx.vout[n].nValue;
return(tx.nLockTime);
}
return(0);
}
} else fprintf(stderr,"[%s] unexpected error notary_hash %s ht.%d at ht.%d\n",ASSETCHAINS_SYMBOL,notarized_hash.ToString().c_str(),notarized_height,notary->nHeight);
}
- else if ( notarized_height > 0 && notarized_height != 73880 && notarized_height >= 170000 )
- fprintf(stderr,"[%s] couldnt find notarized.(%s %d) ht.%d\n",ASSETCHAINS_SYMBOL,notarized_hash.ToString().c_str(),notarized_height,pindex->nHeight);
+ //else if ( notarized_height > 0 && notarized_height != 73880 && notarized_height >= 170000 )
+ // fprintf(stderr,"[%s] couldnt find notarized.(%s %d) ht.%d\n",ASSETCHAINS_SYMBOL,notarized_hash.ToString().c_str(),notarized_height,pindex->nHeight);
return(0);
}
}
return(0);
}
+
+int32_t komodo_staked(uint256 *utxotxidp,int32_t *utxovoutp,uint64_t *utxovaluep,uint8_t *utxosig)
+{
+ memset(utxotxidp,0,sizeof(*utxotxidp));
+ memset(utxovoutp,0,sizeof(*utxovoutp));
+ memset(utxovaluep,0,sizeof(*utxovaluep));
+ memset(utxosig,0,72);
+ return(72);
+}
+