Exemplo n.º 1
0
 public PersistedBlock(UInt32 height, String blockhash, Double amount, Int32 confirmations, Int32 time)
 {
     // determine the block status
     if (confirmations == -1)
         Status = BlockStatus.Orphaned;
     else
         Status = confirmations > 120 ? BlockStatus.Confirmed : BlockStatus.Pending;
     
     Height = height;
     BlockHash = blockhash;
     Amount = (decimal)amount;
     CreatedAt = time.UnixTimestampToDateTime();
 }