Ejemplo n.º 1
0
 public override void SetProperties(List <byte[]> propertyData)
 {
     Signature         = propertyData[0];
     Features          = propertyData[1];
     Timestamp         = DateTimeExtensions.CreateFromUnixSeconds(propertyData[2].ToUIntBigEndian());
     NodeId            = new ECKeyPair(propertyData[3], false);
     NodeIdHex         = propertyData[3].ToHex();
     Color             = propertyData[4].ToHex();
     Alias             = Encoding.ASCII.GetString(propertyData[5]);
     _networkAddresses = propertyData[6];
 }
Ejemplo n.º 2
0
        public override void SetProperties(List <byte[]> propertyData)
        {
            Signature                 = propertyData[0];
            ChainHash                 = propertyData[1];
            ShortChannelId            = propertyData[2];
            ShortChannelIdHex         = propertyData[2].ToHex();
            Timestamp                 = DateTimeExtensions.CreateFromUnixSeconds(propertyData[3].ToUIntBigEndian());
            MessageFlags              = propertyData[4][0];
            ChannelFlags              = propertyData[5][0];
            CltvExpiryDelta           = propertyData[6].ToUShortBigEndian();
            HtlcMinimumSat            = propertyData[7].ToULongBigEndian();
            FeeBaseMsat               = propertyData[8].ToUIntBigEndian();
            FeeProportionalMillionths = propertyData[9].ToUIntBigEndian();

            if (propertyData.Count > 10)
            {
                HtlcMaximumSat = propertyData[10].ToULongBigEndian();
            }
        }
Ejemplo n.º 3
0
 public override void SetProperties(List <byte[]> propertyData)
 {
     ChainHash = propertyData[0];
     StartDate = DateTimeExtensions.CreateFromUnixSeconds(propertyData[1].ToUIntBigEndian());
     Range     = TimeSpan.FromSeconds(propertyData[2].ToUIntBigEndian());
 }