Ejemplo n.º 1
0
 public TxReceiptStructRef(TxReceipt receipt)
 {
     StatusCode           = receipt.StatusCode;
     BlockNumber          = receipt.BlockNumber;
     BlockHash            = (receipt.BlockHash ?? Keccak.Zero).ToStructRef();
     TxHash               = (receipt.TxHash ?? Keccak.Zero).ToStructRef();
     Index                = receipt.Index;
     GasUsed              = receipt.GasUsed;
     GasUsedTotal         = receipt.GasUsedTotal;
     Sender               = (receipt.Sender ?? Address.Zero).ToStructRef();
     ContractAddress      = (receipt.ContractAddress ?? Address.Zero).ToStructRef();
     Recipient            = (receipt.Recipient ?? Address.Zero).ToStructRef();
     ReturnValue          = receipt.ReturnValue;
     PostTransactionState = (receipt.PostTransactionState ?? Keccak.Zero).ToStructRef();
     Bloom                = (receipt.Bloom ?? Core.Bloom.Empty).ToStructRef();
     Logs    = receipt.Logs;
     LogsRlp = Span <byte> .Empty;
     Error   = receipt.Error;
 }
Ejemplo n.º 2
0
 public void Accumulate(BloomStructRef bloom)
 {
     Bytes.Or(bloom.Bytes);
 }
Ejemplo n.º 3
0
 public bool Equals(BloomStructRef other)
 {
     return(Nethermind.Core.Extensions.Bytes.AreEqual(Bytes, other.Bytes));
 }