示例#1
0
 public BlockTxNode(int index, int depth, UInt256 hash, bool pruned, EncodedTx encodedTx)
 {
     Hash      = hash;
     Index     = index;
     Depth     = depth;
     Pruned    = pruned;
     EncodedTx = encodedTx;
 }
示例#2
0
        public BlockTx(int index, EncodedTx encodedTx)
        {
            if (encodedTx == null)
                throw new ArgumentNullException(nameof(encodedTx));

            Hash = encodedTx.Hash;
            Index = index;
            EncodedTx = encodedTx;
        }
示例#3
0
        public BlockTx(int index, EncodedTx encodedTx)
        {
            if (encodedTx == null)
            {
                throw new ArgumentNullException(nameof(encodedTx));
            }

            Hash      = encodedTx.Hash;
            Index     = index;
            EncodedTx = encodedTx;
        }
示例#4
0
 public BlockTx(int index, UInt256 hash, ImmutableArray<byte> txBytes)
 {
     Hash = hash;
     Index = index;
     EncodedTx = new EncodedTx(hash, txBytes);
 }
示例#5
0
 public BlockTx(int index, UInt256 hash, ImmutableArray <byte> txBytes)
 {
     Hash      = hash;
     Index     = index;
     EncodedTx = new EncodedTx(hash, txBytes);
 }
示例#6
0
        public async Task SendTransaction(EncodedTx transaction)
        {
            await Task.Yield();

            var sendTxMessage = Messaging.ConstructMessage("tx", transaction.TxBytes.ToArray());

            await SendMessageAsync(sendTxMessage);
        }