Skip to content

Instantly share code, notes, and snippets.

@YazzyYaz
Created March 11, 2020 01:31
Show Gist options
  • Select an option

  • Save YazzyYaz/0173cb037ffce2c83fcd5517e3f9088b to your computer and use it in GitHub Desktop.

Select an option

Save YazzyYaz/0173cb037ffce2c83fcd5517e3f9088b to your computer and use it in GitHub Desktop.
2020-03-11T01:27:47.095 fetcher=block_uncle count=10 [error] Task #PID<0.740.0> started from Indexer.Fetcher.UncleBlock terminating
** (FunctionClauseError) no function clause matching in EthereumJSONRPC.Block.elixir_to_params/1
(ethereum_jsonrpc) lib/ethereum_jsonrpc/block.ex:194: EthereumJSONRPC.Block.elixir_to_params(%{"difficulty" => 2882419, "extraData" => "0x", "gasLimit" => 4712388, "gasUsed" => 0, "hash" => "0xfdfadc3248673ce3f4bbe591db323b2de74862fc1fef85057
995c26c9e418ffc", "logsBloom" => "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000", "miner" => "0xaef80c638d09c5cd910d19fcf0fd264d1f3ae3bd", "mixHash" => "0x8a87e540c3b085113fdb1579c54077136472a4b9940cfbd4f5d427f6a03e828d", "nonce" => "0x78dc25ff160b811e", "number" => 10
02147, "parentHash" => "0xf7ec542aab2dd58d3a4950da75331aac3a83c44abf664a0bd09a81a568da9ece", "receiptsRoot" => "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "sha3Uncles" => "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a74
13f0a142fd40d49347", "size" => 514, "stateRoot" => "0x62adaa077cf14b450fd54463a79940f266f304320c2e57389936b5de8ab73084", "timestamp" => ~U[2020-03-09 13:54:47Z], "transactionsRoot" => "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e36
3b421", "uncles" => []})
(elixir) lib/enum.ex:1336: Enum."-map/2-lists^map/1-0-"/2
(ethereum_jsonrpc) lib/ethereum_jsonrpc/blocks.ex:51: EthereumJSONRPC.Blocks.from_responses/2
(ethereum_jsonrpc) lib/ethereum_jsonrpc.ex:454: EthereumJSONRPC.fetch_blocks_by_params/3
(indexer) lib/indexer/fetcher/uncle_block.ex:84: Indexer.Fetcher.UncleBlock.run/2
(elixir) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: &Indexer.BufferedTask.log_run/1
Args: [%{batch: [{<<38, 175, 167, 11, 8, 240, 212, 255, 92, 69, 29, 183, 182, 217, 238, 34, 168, 110, 162, 105, 153, 35, 175, 143, 88, 209, 148, 13, 135, 178, 90, 115>>, 0}, {<<176, 103, 7, 68, 114, 48, 10, 153, 55, 115, 69, 23, 21, 203, 160,
146, 74, 209, 83, 62, 9, 85, 45, 131, 176, 97, 191, 44, 89, 29, 98, 100>>, 0}, {<<35, 67, 209, 227, 33, 187, 148, 43, 169, 58, 67, 86, 204, 192, 80, 161, 191, 118, 112, 247, 184, 138, 107, 164, 67, 190, 52, 161, 45, 137, 21, 66>>, 0}, {<<198, 15
9, 223, 166, 233, 106, 113, 4, 93, 153, 184, 109, 93, 187, 172, 120, 189, 176, 60, 76, 93, 1, 76, 128, 159, 205, 149, 132, 27, 61, 129, 40>>, 0}, {<<232, 118, 148, 234, 198, 115, 184, 164, 245, 205, 6, 161, 60, 10, 131, 190, 7, 185, 102, 177, 186
, 25, 247, 241, 184, 190, 63, 149, 57, 107, 36, 144>>, 0}, {<<162, 18, 8, 7, 9, 83, 11, 71, 87, 68, 131, 175, 108, 9, 105, 246, 198, 42, 233, 84, 3, 193, 95, 166, 40, 46, 192, 65, 229, 128, 120, 62>>, 0}, {<<204, 179, 156, 18, 19, 240, 253, 213,
13, 151, 28, 165, 168, 151, 212, 225, 227, 219, 229, 210, 29, 87, 41, 125, 138, 172, 97, 169, 109, 207, 79, 31>>, 0}, {<<22, 25, 125, 98, 252, 177, 181, 53, 161, 43, 138, 99, 90, 109, 254, 221, 2, 185, 60, 125, 39, 202, 166, 133, 10, 150, 204, 19
1, 172, 232, 90, 129>>, 0}, {<<208, 30, 61, 138, 177, 67, 54, 1, 85, 222, 228, 194, 217, 172, 42, 39, 108, 102, 72, 76, 19, 157, 139, 162, 218, 251, 168, 243, 206, 62, 240, 112>>, 0}, {<<29, 85, 198, 7, 193, 44, 143, 134, 241, 178, 236, 80, 248,
151, 151, 54, 5, 38, 62, 196, 40, 38, 66, 139, 139, 39, 143, 227, 56, 215, 116, 202>>, 0}], callback_module: Indexer.Fetcher.UncleBlock, callback_module_state: %Indexer.Block.Fetcher{broadcast: :uncle, callback_module: Indexer.Fetcher.UncleBlock,
json_rpc_named_arguments: [transport: EthereumJSONRPC.HTTP, transport_options: [http: EthereumJSONRPC.HTTP.HTTPoison, url: "http://127.0.0.1:8545", http_options: [recv_timeout: 600000, timeout: 600000, hackney: [pool: :ethereum_jsonrpc]]], varia
nt: EthereumJSONRPC.Geth], receipts_batch_size: 250, receipts_concurrency: 10}, metadata: [fetcher: :block_uncle]}]
2020-03-11T01:27:47.103 fetcher=block_uncle count=10 [error] Task #PID<0.750.0> started from Indexer.Fetcher.UncleBlock terminating
** (FunctionClauseError) no function clause matching in EthereumJSONRPC.Block.elixir_to_params/1
(ethereum_jsonrpc) lib/ethereum_jsonrpc/block.ex:194: EthereumJSONRPC.Block.elixir_to_params(%{"difficulty" => 3403206, "extraData" => "0x", "gasLimit" => 4712388, "gasUsed" => 0, "hash" => "0xe3676b549bac7d01b88630d4ec7605c42abefe100da4aa432
579b1664b8ed39f", "logsBloom" => "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000", "miner" => "0x9f2659ffe7b3b467e46dcec3623392cf51635079", "mixHash" => "0x70a09a1302b8f65defc3ed100b0879f80aeac9bab378ef19c222eafebb3c734b", "nonce" => "0x040f4ac00d7a3b4b", "number" => 10
04163, "parentHash" => "0x9f8d98f325543489f917b96667657005331fe14aa5f66129f14a5351c4aea5ec", "receiptsRoot" => "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "sha3Uncles" => "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a74
13f0a142fd40d49347", "size" => 514, "stateRoot" => "0x9064c4722a7ccdcb32550bcd3a8fd83328863cc95551b2bb44b6301013a09c58", "timestamp" => ~U[2020-03-09 20:12:43Z], "transactionsRoot" => "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e36
3b421", "uncles" => []})
(elixir) lib/enum.ex:1336: Enum."-map/2-lists^map/1-0-"/2
(ethereum_jsonrpc) lib/ethereum_jsonrpc/blocks.ex:51: EthereumJSONRPC.Blocks.from_responses/2
(ethereum_jsonrpc) lib/ethereum_jsonrpc.ex:454: EthereumJSONRPC.fetch_blocks_by_params/3
(indexer) lib/indexer/fetcher/uncle_block.ex:84: Indexer.Fetcher.UncleBlock.run/2
(elixir) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: &Indexer.BufferedTask.log_run/1
Args: [%{batch: [{<<241, 196, 164, 6, 71, 205, 225, 108, 53, 60, 108, 82, 95, 153, 182, 184, 96, 36, 140, 249, 84, 32, 214, 183, 59, 60, 56, 172, 221, 85, 5, 56>>, 0}, {<<1, 239, 21, 56, 211, 184, 123, 15, 201, 196, 226, 198, 26, 193, 198, 38
, 159, 87, 44, 74, 204, 24, 233, 185, 100, 96, 205, 129, 3, 26, 162, 49>>, 1}, {<<1, 239, 21, 56, 211, 184, 123, 15, 201, 196, 226, 198, 26, 193, 198, 38, 159, 87, 44, 74, 204, 24, 233, 185, 100, 96, 205, 129, 3, 26, 162, 49>>, 0}, {<<25, 207, 20
2, 155, 201, 19, 8, 42, 32, 163, 189, 8, 108, 44, 240, 89, 154, 195, 50, 150, 153, 228, 49, 16, 146, 88, 211, 216, 91, 91, 198, 193>>, 1}, {<<25, 207, 202, 155, 201, 19, 8, 42, 32, 163, 189, 8, 108, 44, 240, 89, 154, 195, 50, 150, 153, 228, 49, 1
6, 146, 88, 211, 216, 91, 91, 198, 193>>, 0}, {<<150, 35, 224, 196, 129, 66, 10, 93, 53, 156, 152, 0, 160, 6, 252, 168, 209, 92, 190, 22, 35, 4, 36, 29, 52, 108, 148, 78, 247, 219, 199, 160>>, 1}, {<<150, 35, 224, 196, 129, 66, 10, 93, 53, 156, 1
52, 0, 160, 6, 252, 168, 209, 92, 190, 22, 35, 4, 36, 29, 52, 108, 148, 78, 247, 219, 199, 160>>, 0}, {<<179, 137, 132, 59, 208, 54, 198, 250, 110, 186, 63, 107, 198, 48, 254, 137, 164, 238, 177, 160, 200, 137, 251, 164, 109, 39, 38, 171, 102, 18
0, 14, 158>>, 0}, {<<70, 249, 165, 63, 162, 255, 30, 182, 89, 10, 59, 1, 158, 146, 40, 118, 116, 200, 187, 243, 231, 73, 222, 199, 36, 144, 124, 43, 199, 251, 16, 117>>, 0}, {<<213, 121, 245, 111, 46, 78, 180, 129, 253, 149, 124, 222, 71, 115, 18
9, 146, 74, 207, 9, 132, 246, 209, 250, 212, 238, 54, 145, 48, 70, 245, 75, 3>>, 0}], callback_module: Indexer.Fetcher.UncleBlock, callback_module_state: %Indexer.Block.Fetcher{broadcast: :uncle, callback_module: Indexer.Fetcher.UncleBlock, json_
rpc_named_arguments: [transport: EthereumJSONRPC.HTTP, transport_options: [http: EthereumJSONRPC.HTTP.HTTPoison, url: "http://127.0.0.1:8545", http_options: [recv_timeout: 600000, timeout: 600000, hackney: [pool: :ethereum_jsonrpc]]], variant: Et
hereumJSONRPC.Geth], receipts_batch_size: 250, receipts_concurrency: 10}, metadata: [fetcher: :block_uncle]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment