private string GetId(uint256 txId)
 {
     return("tx-" + txId.ToString());
 }
Exemplo n.º 2
0
 public void PutAsync(uint256 trxId, uint256 blockId)
 {
     repository.PutAsync(trxId.ToString(), blockId.AsBitcoinSerializable());
 }
Exemplo n.º 3
0
 public Task PutAsync(uint256 blockId, Block block)
 {
     return(repository.PutAsync(blockId.ToString(), block));
 }
Exemplo n.º 4
0
 public uint256 GetBlockHash(uint256 trxHash)
 {
     return(repository.GetAsync <uint256.MutableUint256>(trxHash.ToString()).Result?.Value);
 }
Exemplo n.º 5
0
 public Task <Block> GetBlockAsync(uint256 blockId)
 {
     return(repository.GetAsync <Block>(blockId.ToString()));
 }