Guest User

Untitled

a guest
Dec 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public class Block
  2. {
  3. [JsonProperty(Order = 1, NullValueHandling = NullValueHandling.Include, PropertyName = "index")]
  4. public int Index { get; set; }
  5.  
  6. [JsonProperty(Order = 2, NullValueHandling = NullValueHandling.Include, PropertyName = "timestamp")]
  7. public int Timestamp { get; set; } = (int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;
  8.  
  9. [JsonProperty(Order = 3, NullValueHandling = NullValueHandling.Include, PropertyName = "transactions")]
  10. public IList<Transaction> Transactions { get; set; }
  11.  
  12. [JsonProperty(Order = 4, NullValueHandling = NullValueHandling.Include, PropertyName = "proof")]
  13. public int Proof { get; set; }
  14.  
  15. [JsonProperty(Order = 5, NullValueHandling = NullValueHandling.Include, PropertyName = "previous_hash")]
  16. public string PreviousHash { get; set; }
  17. }
Add Comment
Please, Sign In to add comment