Skip to content

Instantly share code, notes, and snippets.

use std::path::Path;
use db;
use lmdb::{self, Transaction, Cursor};
pub struct Lmdb {
env: lmdb::Environment,
db: lmdb::Database,
}
2018-11-12 15:59:08 UTC Imported #6691581 0xeca3…0b92 (32 txs, 7.99 Mgas, 246 ms, 28.28 KiB) + another 1 block(s) containing 68 tx(s)
2018-11-12 15:59:13 UTC Imported #6691582 0x464a…a129 (43 txs, 2.05 Mgas, 128 ms, 7.46 KiB)
2018-11-12 15:59:24 UTC Imported #6691583 0xcf51…dcd5 (103 txs, 7.98 Mgas, 611 ms, 28.57 KiB)
2018-11-12 15:59:31 UTC Imported #6691584 0x7d86…face (0 txs, 0.00 Mgas, 1 ms, 0.52 KiB)
2018-11-12 15:59:43 UTC Imported #6691585 0xdb77…26d5 (124 txs, 7.99 Mgas, 653 ms, 23.61 KiB)
2018-11-12 15:59:54 UTC Imported #6691586 0xe2b6…3591 (36 txs, 8.00 Mgas, 246 ms, 28.64 KiB)
2018-11-12 16:00:15 UTC Imported #6691587 0x2c08…29f4 (109 txs, 4.85 Mgas, 277 ms, 17.47 KiB)
2018-11-12 16:00:26 UTC Imported #6691588 0x6749…d114 (10 txs, 7.44 Mgas, 165 ms, 25.42 KiB)
2018-11-12 16:00:28 UTC Imported #6691589 0x759b…0d4f (122 txs, 5.99 Mgas, 615 ms, 20.16 KiB)
2018-11-12 16:00:43 UTC Imported #6691590 0xe29d…3b0c (10 txs, 0.64 Mgas, 19 ms, 1.79 KiB)
{"id":"7b32358a-651a-7676-5544-cd3de2a648c2","version":3,"crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"9c45f27bbb15a3081368b302992f9d2d"},"ciphertext":"d5313d5c88ccd8da93087a426500982663429bacdb8dc6dcf192f545d228cd75","kdf":"pbkdf2","kdfparams":{"c":10240,"dklen":32,"prf":"hmac-sha256","salt":"7d694411e3ae6929e701c147ae044ee849af68001e947f4cde7cf38a2b2554f0"},"mac":"3b5c3045e0ea9f7ed79e5d073175130054ea22ec3549bda7d54c4ef0174785fb"},"address":"00a88fc3b3a86793de59c886e20b320a057a5723","name":"devmeetings","meta":"{}"}

Keybase proof

I hereby claim:

  • I am tomusdrw on github.
  • I am tomusdrw (https://keybase.io/tomusdrw) on keybase.
  • I have a public key ASB2Tnz-ENYKvLCFMEP0-B61RjdQtHdKqYjmElmzIpKjCQo

To claim this, I am signing this object:

2018-09-12 09:39:10 Starting Parity-Ethereum/v2.1.0-unstable-631df0f-20180911/x86_64-linux-gnu/rustc1.28.0
2018-09-12 09:39:10 Keys path /home/folsen/.local/share/io.parity.ethereum/keys/ethereum
2018-09-12 09:39:10 DB path /home/folsen/.local/share/io.parity.ethereum/chains/ethereum/db/906a34e69aec8c0d
2018-09-12 09:39:10 State DB configuration: fast
2018-09-12 09:39:10 Operating mode: active
2018-09-12 09:39:10 Configured for Foundation using Ethash engine
2018-09-12 09:39:20 Updated conversion rate to Ξ1 = US$171.70 (27733864 wei/gas)
2018-09-12 09:39:25 Public node URL: -
2018-09-12 09:39:30 Syncing #6289129 0x9a74…df13 6.30 blk/s 622.6 tx/s 44 Mgas/s 0+ 63 Qed #6289193 84/750 peers 2 MiB chain 2 GiB db 7 MiB queue 279 MiB sync RPC: 0 conn, 0 req/s, 0 µs
2018-09-12 09:39:40 Syncing #6289195 0x292a…7aab 6.70 blk/s 696.6 tx/s 47 Mgas/s 0+ 27 Qed #6289226 115/750 peers 4 MiB chain 2 GiB db 3 MiB queue 1 GiB sync RPC: 0 conn, 0 req/s, 0 µs
getBlockTransactionsAsync waiting for blocks 4832000 - 4832099 requests
getBlockTransactionsAsync got blocks, duration in sec:, 5.903
wait for 252 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832000, txs: 252, duration in sec:, 1.599
wait for 103 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832001, txs: 103, duration in sec:, 0.151
wait for 79 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832002, txs: 79, duration in sec:, 0.090
wait for 64 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832003, txs: 64, duration in sec:, 0.055
tomusdrw@t ~/test $ node receipts
getBlockTransactionsAsync waiting for blocks 4832000 - 4832099 requests
getBlockTransactionsAsync got blocks, duration in sec:, 5.918
parity_getBlockReceipts for block 4832000, receipts: 252, duration in sec: 0.052
wait for 252 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832000, txs: 252, duration in sec:, 0.204
parity_getBlockReceipts for block 4832001, receipts: 103, duration in sec: 0.022
wait for 103 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832001, txs: 103, duration in sec:, 0.063
parity_getBlockReceipts for block 4832002, receipts: 79, duration in sec: 0.020
@tomusdrw
tomusdrw / gist.js
Last active September 11, 2018 12:24 — forked from adyshimony/gist.js
Fetch transactions receipt
const ipcPath = process.env['HOME'] + '/.local/share/io.parity.ethereum/jsonrpc.ipc'
const net = require('net')
const Web3 = require('web3')
const web3 = new Web3()
web3.setProvider(new web3.providers.IpcProvider(ipcPath, net))
web3.extend({
property: 'parity',
methods: [{
{
"name": "TestBasicAuthority",
"engine": {
"authorityRound": {
"params": {
"stepDuration": "6",
"validators": {
"list": ["00a88fc3b3a86793de59c886e20b320a057a5723"]
},
"immediateTransitions": true,
$ ./target/release/parity --help
Parity. Ethereum Client.
By Wood/Paronyan/Kotewicz/Drwięga/Volf et al.
Copyright 2015, 2016, 2017, 2018 Parity Technologies (UK) Ltd
parity [options]
parity [options] ui
parity [options] dapp <PATH>
parity [options] daemon <PID-FILE>
parity [options] account new