Exemplo n.º 1
0
        public BlockchainMessage(BlockchainMessage other)
        {
            this.type = new CryptoNote.BlockchainMessage.Type(other.type);
            switch (type)
            {
            case Type.NewBlock:
                new(newBlock) new NewBlock(other.newBlock);
                break;

            case Type.NewAlternativeBlock:
                new(newAlternativeBlock) new NewAlternativeBlock(other.newAlternativeBlock);
                break;

            case Type.ChainSwitch:
                chainSwitch = new ChainSwitch(*other.chainSwitch);
                break;

            case Type.AddTransaction:
                addTransaction = new AddTransaction(*other.addTransaction);
                break;

            case Type.DeleteTransaction:
                deleteTransaction = new DeleteTransaction(*other.deleteTransaction);
                break;
            }
        }
Exemplo n.º 2
0
 public BlockchainMessage(DeleteTransaction message)
 {
     this.type = new CryptoNote.BlockchainMessage.Type.DeleteTransaction;
     this.deleteTransaction = new DeleteTransaction(message);
 }