private Task AddOrUpdateAsync(ConsumerSession session)
        {
            Serialization.Rlp.Rlp rlp = _rlpDecoder.Encode(session);
            _database.Set(session.Id, rlp.Bytes);

            return(Task.CompletedTask);
        }
        private Task AddOrUpdateAsync(DepositApproval depositApproval)
        {
            Serialization.Rlp.Rlp rlp = _rlpDecoder.Encode(depositApproval);
            _database.Set(depositApproval.Id, rlp.Bytes);

            return(Task.CompletedTask);
        }
Ejemplo n.º 3
0
        private Task AddOrUpdateAsync(NdmConfig config)
        {
            Serialization.Rlp.Rlp rlp = _rlpDecoder.Encode(config);
            _database.Set(Keccak.Compute(config.Id), rlp.Bytes);

            return(Task.CompletedTask);
        }