Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(providers): add tracing #113

Merged
merged 3 commits into from Dec 24, 2020
Merged

feat(providers): add tracing #113

merged 3 commits into from Dec 24, 2020

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Dec 24, 2020

Fixes #32

Example output



running 1 test
2020-12-24T19:25:37.406070+00:00 TRACE rpc{method="eth_gasPrice" params="null"}: tx
2020-12-24T19:25:37.407086+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x610e31e31cbcf59189e10e1491383beaf9bcce81\",\"to\":\"0x610e31e31cbcf59189e10e1491383beaf9bcce81\"}]"}: tx
2020-12-24T19:25:37.407750+00:00 TRACE rpc{method="eth_getTransactionCount" params="[\"0x610e31e31cbcf59189e10e1491383beaf9bcce81\",\"latest\"]"}: tx
2020-12-24T19:25:39.718431+00:00 TRACE rpc{method="eth_gasPrice" params="null"}: rx=1000000000
2020-12-24T19:25:39.718645+00:00 TRACE rpc{method="eth_getTransactionCount" params="[\"0x610e31e31cbcf59189e10e1491383beaf9bcce81\",\"latest\"]"}: rx=1272
2020-12-24T19:25:39.719980+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x610e31e31cbcf59189e10e1491383beaf9bcce81\",\"to\":\"0x610e31e31cbcf59189e10e1491383beaf9bcce81\"}]"}: rx=21000
2020-12-24T19:25:39.722855+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8658204f8843b9aca0082520894610e31e31cbcf59189e10e1491383beaf9bcce8180801ca0bfd56117df00a5277d994d70fa66c4e25f7e617b0630cc428c0accb5b36d167ba00cfc7ed9c188477ba778c2820ef06fa2ef49780cbeea2cf3c736774ff0331225\"]"}: tx
2020-12-24T19:25:40.055549+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8658204f8843b9aca0082520894610e31e31cbcf59189e10e1491383beaf9bcce8180801ca0bfd56117df00a5277d994d70fa66c4e25f7e617b0630cc428c0accb5b36d167ba00cfc7ed9c188477ba778c2820ef06fa2ef49780cbeea2cf3c736774ff0331225\"]"}: rx=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:25:40.055767+00:00 TRACE rpc{method="eth_getTransactionReceipt" params="[\"0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6\"]"}: tx
2020-12-24T19:25:40.203671+00:00 TRACE rpc{method="eth_getTransactionReceipt" params="[\"0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6\"]"}: rx=None
2020-12-24T19:25:47.208799+00:00 TRACE rpc{method="eth_getTransactionReceipt" params="[\"0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6\"]"}: tx
2020-12-24T19:25:47.354889+00:00 TRACE rpc{method="eth_getTransactionReceipt" params="[\"0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6\"]"}: rx=None
2020-12-24T19:25:54.360210+00:00 TRACE rpc{method="eth_getTransactionReceipt" params="[\"0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6\"]"}: tx
2020-12-24T19:25:54.518060+00:00 TRACE rpc{method="eth_getTransactionReceipt" params="[\"0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6\"]"}: rx=Some(TransactionReceipt { transaction_hash: 0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6, transaction_index: 7, block_hash: Some(0x99c9bf8c7cb5487478bae6d72632bb2a971930a5569b50b4bcc69edc37b5df46), block_number: Some(7777231), cumulative_gas_used: 412266, gas_used: Some(21000), contract_address: None, logs: [], status: Some(1), root: None, logs_bloom: 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 })
2020-12-24T19:25:54.518624+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:25:54.660540+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777231
2020-12-24T19:25:54.660642+00:00 TRACE confirmations 1/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:01.662955+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:01.821535+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777231
2020-12-24T19:26:01.821690+00:00 TRACE confirmations 1/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:08.822554+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:08.970570+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777232
2020-12-24T19:26:08.970658+00:00 TRACE confirmations 2/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:15.972335+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:16.114741+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777232
2020-12-24T19:26:16.114897+00:00 TRACE confirmations 2/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:23.115710+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:23.257464+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777233
2020-12-24T19:26:23.257552+00:00 TRACE confirmations 3/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:30.261033+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:30.409025+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777233
2020-12-24T19:26:30.409116+00:00 TRACE confirmations 3/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
test eth_tests::xpending_txs_with_confirmations_testnet ... test eth_tests::xpending_txs_with_confirmations_testnet has been running for over 60 seconds
2020-12-24T19:26:37.411313+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:37.628023+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777234
2020-12-24T19:26:37.628177+00:00 TRACE confirmations 4/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:44.629555+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:44.780773+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777234
2020-12-24T19:26:44.780896+00:00 TRACE confirmations 4/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:51.783177+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:51.943131+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777235
2020-12-24T19:26:51.943287+00:00 TRACE confirmations 5/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:26:58.949143+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:26:59.102301+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777235
2020-12-24T19:26:59.102425+00:00 TRACE confirmations 5/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:27:06.103301+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:27:06.246366+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777236
2020-12-24T19:27:06.246491+00:00 TRACE confirmations 6/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:27:13.248490+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:27:13.401945+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777236
2020-12-24T19:27:13.402099+00:00 TRACE confirmations 6/6 tx_hash=0x1aac6ef5163ab6255813ad1f1af207457440083d5ea9b5f6a788cd73b0f873b6
2020-12-24T19:27:20.408082+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: tx
2020-12-24T19:27:20.552455+00:00 TRACE rpc{method="eth_blockNumber" params="null"}: rx=7777237

Example 2


2020-12-24T19:40:42.513665+00:00 TRACE rpc{method="eth_getTransactionCount" params="[\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"pending\"]"}: tx
2020-12-24T19:40:42.668398+00:00 TRACE rpc{method="eth_getTransactionCount" params="[\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"pending\"]"}: rx="\"0x195\""
2020-12-24T19:40:42.668684+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x989680\",\"value\":\"0x2\",\"nonce\":\"0x195\"}]"}: tx
2020-12-24T19:40:42.813559+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x989680\",\"value\":\"0x2\",\"nonce\":\"0x195\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:42.818802+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8648201958398968082520894000000000000000000000000000000000000000002801ca0ac6c4f4217bd4bcc6652b9f190313e8116646f906f860d68d65b6b1c9a148417a06f49cc816c8fb7567bec236494188c71e1476c82a909385eb93d159107d5200e\"]"}: tx
2020-12-24T19:40:42.984967+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8648201958398968082520894000000000000000000000000000000000000000002801ca0ac6c4f4217bd4bcc6652b9f190313e8116646f906f860d68d65b6b1c9a148417a06f49cc816c8fb7567bec236494188c71e1476c82a909385eb93d159107d5200e\"]"}: rx="\"0x1b64f0bd1ceba833f78c565189ac74f2b0821727f6442d71fa6efe74fff499d1\""
2020-12-24T19:40:42.985203+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x989680\",\"value\":\"0x2\",\"nonce\":\"0x196\"}]"}: tx
2020-12-24T19:40:43.162924+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x989680\",\"value\":\"0x2\",\"nonce\":\"0x196\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:43.167980+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8648201968398968082520894000000000000000000000000000000000000000002801ba0a1aec7c87360048431182f47e5052dfe40c563a6045d360db3b1c6869f328e0ca03d82527e55fa8564d3d18ed396f31d3aa9dea2f00ef0c3f69084ea065b359688\"]"}: tx
2020-12-24T19:40:43.318628+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8648201968398968082520894000000000000000000000000000000000000000002801ba0a1aec7c87360048431182f47e5052dfe40c563a6045d360db3b1c6869f328e0ca03d82527e55fa8564d3d18ed396f31d3aa9dea2f00ef0c3f69084ea065b359688\"]"}: rx="\"0xa7cfceba15e074d3d437d2aba6f5ca842d7043ee78315ae354215b05d25386fa\""
2020-12-24T19:40:43.318969+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x989680\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:43.477231+00:00 TRACE rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x989680\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:43.481521+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8648201978398968082520894000000000000000000000000000000000000000002801ca010d5c662684b24c77f56adb9c64681e4238cc628c96c7e1e565cd5fa96bfd870a030c7ba3bf7585e464f5ef9f549fd058cb437b8517fbebd6d40bc17b84c748e68\"]"}: tx
2020-12-24T19:40:43.634047+00:00 TRACE rpc{method="eth_sendRawTransaction" params="[\"0xf8648201978398968082520894000000000000000000000000000000000000000002801ca010d5c662684b24c77f56adb9c64681e4238cc628c96c7e1e565cd5fa96bfd870a030c7ba3bf7585e464f5ef9f549fd058cb437b8517fbebd6d40bc17b84c748e68\"]"}: rx="\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\""
2020-12-24T19:40:45.518049+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: tx
2020-12-24T19:40:45.667670+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: rx="null"
2020-12-24T19:40:45.667833+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: tx
2020-12-24T19:40:45.834268+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: rx="null"
2020-12-24T19:40:45.834461+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: tx
2020-12-24T19:40:45.988378+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: rx="null"
2020-12-24T19:40:48.993975+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: tx
2020-12-24T19:40:49.152102+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x0894edf5c1543ab567cd7bb09d98fdddf1e0000a582428aa74d29ac6700cfc80\"]"}: rx="null"
2020-12-24T19:40:49.152353+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xaba950\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:49.302851+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xaba950\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:49.305693+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86482019783aba95082520894000000000000000000000000000000000000000002801ca0dab5cb4945a56f8bb122c2ccbf440396c7aac535d1eb853beadc4309ae490cb4a03239d2efe0b5805d63b02587175009abe5b9b9079909c685dc4ec24044022c6a\"]"}: tx
2020-12-24T19:40:49.476068+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86482019783aba95082520894000000000000000000000000000000000000000002801ca0dab5cb4945a56f8bb122c2ccbf440396c7aac535d1eb853beadc4309ae490cb4a03239d2efe0b5805d63b02587175009abe5b9b9079909c685dc4ec24044022c6a\"]"}: rx="\"0xcd475e61b822e8ce844a96d953c48e0dc19ea0ab466dc1a522074d814267da19\""
2020-12-24T19:40:49.476211+00:00 TRACE gas-escalation: escalated tx_hash=0xcd475e61b822e8ce844a96d953c48e0dc19ea0ab466dc1a522074d814267da19 old_gas_price=10000000 new_gas_price=11250000
2020-12-24T19:40:49.476394+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xcd475e61b822e8ce844a96d953c48e0dc19ea0ab466dc1a522074d814267da19\"]"}: tx
2020-12-24T19:40:49.630992+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xcd475e61b822e8ce844a96d953c48e0dc19ea0ab466dc1a522074d814267da19\"]"}: rx="null"
2020-12-24T19:40:49.631191+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xc11e7a\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:49.775865+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xc11e7a\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:49.778588+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86482019783c11e7a82520894000000000000000000000000000000000000000002801ca047166f49f944fc76aea9d9d13e97e10c25e696238dcc2d9b5c2d48e7bcce23eba035b8ec658a7565a3dbf1fdc006b3a3dfe67f9ef4d125bb63965893893ca75de8\"]"}: tx
2020-12-24T19:40:49.934003+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86482019783c11e7a82520894000000000000000000000000000000000000000002801ca047166f49f944fc76aea9d9d13e97e10c25e696238dcc2d9b5c2d48e7bcce23eba035b8ec658a7565a3dbf1fdc006b3a3dfe67f9ef4d125bb63965893893ca75de8\"]"}: rx="\"0xce1506dbbec62af7c71610d186dc8f14258aa9bdd69a5f7b28cbecc8c668c398\""
2020-12-24T19:40:49.934175+00:00 TRACE gas-escalation: escalated tx_hash=0xce1506dbbec62af7c71610d186dc8f14258aa9bdd69a5f7b28cbecc8c668c398 old_gas_price=11250000 new_gas_price=12656250
2020-12-24T19:40:49.934394+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xce1506dbbec62af7c71610d186dc8f14258aa9bdd69a5f7b28cbecc8c668c398\"]"}: tx
2020-12-24T19:40:50.079593+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xce1506dbbec62af7c71610d186dc8f14258aa9bdd69a5f7b28cbecc8c668c398\"]"}: rx="null"
2020-12-24T19:40:50.079898+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xd9424a\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:50.245821+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xd9424a\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:50.249086+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86482019783d9424a82520894000000000000000000000000000000000000000002801ba0f2b4876805a86390d6ed413b77fb76b3a97dd248f3b4ad25b5ad69f2b92f8372a07faa18411227c5b166b4a0eb28033fdcd615640ff9d10a3f3309fa9b29977076\"]"}: tx
2020-12-24T19:40:50.446105+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86482019783d9424a82520894000000000000000000000000000000000000000002801ba0f2b4876805a86390d6ed413b77fb76b3a97dd248f3b4ad25b5ad69f2b92f8372a07faa18411227c5b166b4a0eb28033fdcd615640ff9d10a3f3309fa9b29977076\"]"}: rx="\"0xf965400f4fa4a1a1d2afb0c60f0aa0e3a04a14b88023bf1068ce27c63de8d3ed\""
2020-12-24T19:40:50.446275+00:00 TRACE gas-escalation: escalated tx_hash=0xf965400f4fa4a1a1d2afb0c60f0aa0e3a04a14b88023bf1068ce27c63de8d3ed old_gas_price=12656250 new_gas_price=14238282
gtg2020-12-24T19:40:53.450381+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xf965400f4fa4a1a1d2afb0c60f0aa0e3a04a14b88023bf1068ce27c63de8d3ed\"]"}: tx
2020-12-24T19:40:53.599334+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xf965400f4fa4a1a1d2afb0c60f0aa0e3a04a14b88023bf1068ce27c63de8d3ed\"]"}: rx="null"
2020-12-24T19:40:53.599577+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x13556e3\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:53.797218+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x13556e3\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:53.800362+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86582019784013556e382520894000000000000000000000000000000000000000002801ba0f1523913cd768103e639e99e782ec7b94f8600a46eccb7bfa02642093bcf780fa059d0de7d8af9f9623fc43af93462ac0e6c3171140c3aa8c0303317d93627e420\"]"}: tx
2020-12-24T19:40:53.947541+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf86582019784013556e382520894000000000000000000000000000000000000000002801ba0f1523913cd768103e639e99e782ec7b94f8600a46eccb7bfa02642093bcf780fa059d0de7d8af9f9623fc43af93462ac0e6c3171140c3aa8c0303317d93627e420\"]"}: rx="\"0x8427d6a52f87641e7d155d2de67c8509f48f66ae6f61e67d98833cb0d17a38e6\""
2020-12-24T19:40:53.947724+00:00 TRACE gas-escalation: escalated tx_hash=0x8427d6a52f87641e7d155d2de67c8509f48f66ae6f61e67d98833cb0d17a38e6 old_gas_price=14238282 new_gas_price=20272867
2020-12-24T19:40:53.947901+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x8427d6a52f87641e7d155d2de67c8509f48f66ae6f61e67d98833cb0d17a38e6\"]"}: tx
2020-12-24T19:40:54.091195+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x8427d6a52f87641e7d155d2de67c8509f48f66ae6f61e67d98833cb0d17a38e6\"]"}: rx="null"
2020-12-24T19:40:54.091502+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x1b87237\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:54.256827+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x1b87237\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:54.259553+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978401b8723782520894000000000000000000000000000000000000000002801ba0c4542fa8e85a37142447af09c565d6f116ec18edeed99688304d4a384413987aa016f90d43d199dc41bd668797745b28cef9f8ccfff09a97821578e49c6f8a2535\"]"}: tx
2020-12-24T19:40:54.403999+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978401b8723782520894000000000000000000000000000000000000000002801ba0c4542fa8e85a37142447af09c565d6f116ec18edeed99688304d4a384413987aa016f90d43d199dc41bd668797745b28cef9f8ccfff09a97821578e49c6f8a2535\"]"}: rx="\"0xcf98b81d594223c2767faf742af394d9b7baf1377b3dbc9285ee0b2ef298c2d3\""
2020-12-24T19:40:54.404135+00:00 TRACE gas-escalation: escalated tx_hash=0xcf98b81d594223c2767faf742af394d9b7baf1377b3dbc9285ee0b2ef298c2d3 old_gas_price=20272867 new_gas_price=28865079
2020-12-24T19:40:54.404311+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xcf98b81d594223c2767faf742af394d9b7baf1377b3dbc9285ee0b2ef298c2d3\"]"}: tx
2020-12-24T19:40:54.557792+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xcf98b81d594223c2767faf742af394d9b7baf1377b3dbc9285ee0b2ef298c2d3\"]"}: rx="null"
2020-12-24T19:40:54.557996+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x2731ea0\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:54.705931+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x2731ea0\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:54.708938+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978402731ea082520894000000000000000000000000000000000000000002801ba06d3ae75e6e33ceed7244712439a43ddb77b77c2cc8d06f02dc2aa31499c189faa008a225980a2ed79b6629f265b9d2ceb59fd2bcd4a89bd799611125520b298b70\"]"}: tx
2020-12-24T19:40:54.853032+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978402731ea082520894000000000000000000000000000000000000000002801ba06d3ae75e6e33ceed7244712439a43ddb77b77c2cc8d06f02dc2aa31499c189faa008a225980a2ed79b6629f265b9d2ceb59fd2bcd4a89bd799611125520b298b70\"]"}: rx="\"0x924f2461b5c6c4eb61b15896673b672cde37694b0d9760d425e73c127ebaabff\""
2020-12-24T19:40:54.853164+00:00 TRACE gas-escalation: escalated tx_hash=0x924f2461b5c6c4eb61b15896673b672cde37694b0d9760d425e73c127ebaabff old_gas_price=28865079 new_gas_price=41098912
2020-12-24T19:40:57.854979+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x924f2461b5c6c4eb61b15896673b672cde37694b0d9760d425e73c127ebaabff\"]"}: tx
2020-12-24T19:40:57.998964+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x924f2461b5c6c4eb61b15896673b672cde37694b0d9760d425e73c127ebaabff\"]"}: rx="null"
2020-12-24T19:40:57.999205+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x3ec863f\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:58.145116+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x3ec863f\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:58.148039+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978403ec863f82520894000000000000000000000000000000000000000002801ba00e3a583486efbeee2e85a395f32f79384453dccd4592320ffa615f618265acfda03954e81a0a117eac9129e307b7055495c89b9ba93f9dd2ab559ce4960c429d31\"]"}: tx
2020-12-24T19:40:58.293684+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978403ec863f82520894000000000000000000000000000000000000000002801ba00e3a583486efbeee2e85a395f32f79384453dccd4592320ffa615f618265acfda03954e81a0a117eac9129e307b7055495c89b9ba93f9dd2ab559ce4960c429d31\"]"}: rx="\"0x74919c7f66ce624f426ca835543e1677a20eea1f2c451d7b3b69ef20c826e8de\""
2020-12-24T19:40:58.294078+00:00 TRACE gas-escalation: escalated tx_hash=0x74919c7f66ce624f426ca835543e1677a20eea1f2c451d7b3b69ef20c826e8de old_gas_price=41098912 new_gas_price=65832511
2020-12-24T19:40:58.294466+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x74919c7f66ce624f426ca835543e1677a20eea1f2c451d7b3b69ef20c826e8de\"]"}: tx
2020-12-24T19:40:58.440956+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x74919c7f66ce624f426ca835543e1677a20eea1f2c451d7b3b69ef20c826e8de\"]"}: rx="null"
2020-12-24T19:40:58.441266+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x6490dca\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:58.598871+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x6490dca\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:58.602116+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978406490dca82520894000000000000000000000000000000000000000002801ca0d2a81e36a911eb950eff501b9a4b5f5c87f511a97f303df0b12b2fe39ec25256a013dc85fa335b305aac67c9802d3c75c9dbbd150b3b25a6dc7f3de9d4752863f1\"]"}: tx
2020-12-24T19:40:58.746913+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978406490dca82520894000000000000000000000000000000000000000002801ca0d2a81e36a911eb950eff501b9a4b5f5c87f511a97f303df0b12b2fe39ec25256a013dc85fa335b305aac67c9802d3c75c9dbbd150b3b25a6dc7f3de9d4752863f1\"]"}: rx="\"0xb3ac5431d1f2f8b1bc4535ed7d2302c5138185b1a6a2644edeec35b5a8e515ec\""
2020-12-24T19:40:58.747102+00:00 TRACE gas-escalation: escalated tx_hash=0xb3ac5431d1f2f8b1bc4535ed7d2302c5138185b1a6a2644edeec35b5a8e515ec old_gas_price=65832511 new_gas_price=105450954
2020-12-24T19:40:58.747279+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xb3ac5431d1f2f8b1bc4535ed7d2302c5138185b1a6a2644edeec35b5a8e515ec\"]"}: tx
2020-12-24T19:40:58.889836+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0xb3ac5431d1f2f8b1bc4535ed7d2302c5138185b1a6a2644edeec35b5a8e515ec\"]"}: rx="null"
2020-12-24T19:40:58.890079+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xa1164a7\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:40:59.036384+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0xa1164a7\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:40:59.039806+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf865820197840a1164a782520894000000000000000000000000000000000000000002801ba0a146a8e2773271f671f9862fd01d3b39d6fb0a1edbdec8e456f320e2fb59f822a0111ee8a2937e32879d91fd923583e391b1af78d81ba74a2fbe8f847100333010\"]"}: tx
2020-12-24T19:40:59.196623+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf865820197840a1164a782520894000000000000000000000000000000000000000002801ba0a146a8e2773271f671f9862fd01d3b39d6fb0a1edbdec8e456f320e2fb59f822a0111ee8a2937e32879d91fd923583e391b1af78d81ba74a2fbe8f847100333010\"]"}: rx="\"0x58b68e9dea0090148f5a60d136c3ba79ff1a03e580cf68f5d31ba731d7790347\""
2020-12-24T19:40:59.196792+00:00 TRACE gas-escalation: escalated tx_hash=0x58b68e9dea0090148f5a60d136c3ba79ff1a03e580cf68f5d31ba731d7790347 old_gas_price=105450954 new_gas_price=168912039
2020-12-24T19:41:02.200578+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x58b68e9dea0090148f5a60d136c3ba79ff1a03e580cf68f5d31ba731d7790347\"]"}: tx
2020-12-24T19:41:02.351470+00:00 TRACE gas-escalation:rpc{method="eth_getTransactionReceipt" params="[\"0x58b68e9dea0090148f5a60d136c3ba79ff1a03e580cf68f5d31ba731d7790347\"]"}: rx="null"
2020-12-24T19:41:02.351715+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x14691d4e\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: tx
2020-12-24T19:41:02.497343+00:00 TRACE gas-escalation:rpc{method="eth_estimateGas" params="[{\"from\":\"0x57db4b909b98b6b2e0c443fc7cdbc3ae82b41c3d\",\"to\":\"0x0000000000000000000000000000000000000000\",\"gasPrice\":\"0x14691d4e\",\"value\":\"0x2\",\"nonce\":\"0x197\"}]"}: rx="\"0x5208\""
2020-12-24T19:41:02.500630+00:00 TRACE gas-escalation:rpc{method="eth_sendRawTransaction" params="[\"0xf8658201978414691d4e82520894000000000000000000000000000000000000000002801ba08e0eaa7d29abefde62b7466ca7f0674527c97911434dfc4d8b4fec78024e1bc8a038ba9418a8e1ff3b9e7821752622bb921fcc77f5ac6e6319b233450d6521883b\"]"}: tx
^C

@@ -121,11 +121,12 @@ impl<'a, P: JsonRpcClient> Future for PendingTransaction<'a, P> {

// if the transaction has at least K confirmations, return the receipt
// (subtract 1 since the tx already has 1 conf when it's mined)
if current_block >= inclusion_block + *this.confirmations - 1 {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was an off by 1 here

@gakonst gakonst merged commit dc4c2a8 into master Dec 24, 2020
@gakonst gakonst deleted the tracing branch December 24, 2020 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use tracing for logging
1 participant