Esempio n. 1
0
        internal bool Load(DataNode root)
        {
            this.timestamp = root.GetUInt32("timestamp");

            this._transactions.Clear();

            foreach (var child in root.Children)
            {
                if (child.Name == "transaction")
                {
                    var tx = new Transaction(this);
                    tx.Load(child);
                    _transactions.Add(tx);
                }
            }

            return(true);
        }
Esempio n. 2
0
        internal bool Load(DataNode root)
        {
            this.timestamp     = root.GetUInt32("timestamp");
            this.consensusData = root.GetUInt32("consensusData");
            this.hash          = UInt256.Parse(root.GetString("hash"));


            this._transactions.Clear();

            foreach (var child in root.Children)
            {
                if (child.Name == "transaction")
                {
                    var tx = new Transaction(this);
                    tx.Load(child);
                    _transactions.Add(tx);
                }
            }

            return(true);
        }