示例#1
0
        public Task UpsertBlockAsync(Block source)
        {
            CinderBlock document = source.MapToStorageEntityForUpsert <CinderBlock>();

            document.Sha3Uncles = source.Sha3Uncles;
            document.Uncles     = source.Uncles;
            document.UncleCount = source.Uncles.Length;
            return(UpsertDocumentAsync(document));
        }
示例#2
0
        public async Task UpsertBlockAsync(Nethereum.RPC.Eth.DTOs.Block source)
        {
            var block = source.MapToStorageEntityForUpsert();

            await Write(block).ConfigureAwait(false);
        }