Esempio n. 1
0
 public static byte[] ZipSignedLedger(SignedLedger signedLedger)
 {
     using (var stream = new ByteStream())
     {
         stream.Write(signedLedger);
         return(Zipper.Zip(stream.GetBytes()));
     }
 }
 public SignedNewLedger(SignedLedger ledger)
 {
     Hash               = ledger.Hash;
     Height             = ledger.Ledger.LedgerLight.Height;
     Timestamp          = ledger.Ledger.LedgerLight.Timestamp;
     PreviousLedgerHash = ledger.Ledger.LedgerLight.Lastledger;
     Signatures         = ledger.Signatures.ToList();
 }
Esempio n. 3
0
 public static ProtocolVersion GetVersion(this SignedLedger signed)
 {
     return(GetVersion(signed.Ledger));
 }
Esempio n. 4
0
 public static LedgerHash GetLastLedger(this SignedLedger signed)
 {
     return(GetLastLedger(signed.Ledger));
 }
Esempio n. 5
0
 public static long GetTimestamp(this SignedLedger signed)
 {
     return(GetTimestamp(signed.Ledger));
 }
Esempio n. 6
0
 public static long GetHeight(this SignedLedger signed)
 {
     return(GetHeight(signed.Ledger));
 }
Esempio n. 7
0
 public SignedLedgerState(SignedLedger ledger, LedgerStateChange state)
 {
     Ledger = ledger;
     State  = state;
 }