static ProposalsContent UnforgeProposals(ForgedReader reader) { return(new ProposalsContent { Source = reader.ReadTzAddress(), Period = reader.ReadInt32(), Proposals = reader.ReadEnumerable(r => r.ReadBase58(Lengths.P.Decoded, Prefix.P)).ToList() }); }
static BlockHeader UnforgeBlockHeader(ForgedReader reader) { return(new BlockHeader { Level = reader.ReadInt32(), Proto = reader.ReadInt32(1), Predecessor = reader.ReadBase58(Lengths.B.Decoded, Prefix.B), Timestamp = DateTimeExtension.FromUnixTime(reader.ReadInt64()), ValidationPass = reader.ReadInt32(1), OperationsHash = reader.ReadBase58(Lengths.LLo.Decoded, Prefix.LLo), Fitness = reader.ReadEnumerable(r => r.ReadHexString()).ToList(), Context = reader.ReadBase58(Lengths.Co.Decoded, Prefix.Co), Priority = reader.ReadInt32(2), ProofOfWorkNonce = Hex.Convert(reader.ReadBytes(8)), SeedNonceHash = UnforgeSeedNonce(reader), Signature = reader.ReadBase58(Lengths.sig.Decoded, Prefix.sig), }); }