-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Inconsistent logIndex between eth_getLogs and eth_getTransactionReceipt #12254
Comments
@rvagg @aarshkshah1992 - axelar is hitting this issue, could you please invest if it’s one of the bugs that were fixed and need to get deployed on RPC provider nodes - or a different one? |
Going to capture the output of these two while my splitstore still has a record of them: eth_getTransactionReceipt{"id":1,"jsonrpc":"2.0","result":{"transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","transactionIndex":"0x61","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872","from":"0xe81678de308c783471489e4c9caa51d1f4e7cb3d","to":"0xc4dcea20265fb62bcd4a77d31fa0351c0d19353c","root":"0x0000000000000000000000000000000000000000000000000000000000000000","status":"0x1","contractAddress":null,"cumulativeGasUsed":"0x0","gasUsed":"0x16415062","effectiveGasPrice":"0xf8e64","logsBloom":"0x000100000000000400000000000000000000000001000100040000000000000000000800800000010800020a0000000000000000000120000000000000200000000a00000000200800081008000040000000000000000000000000008000000000000000020000000080008000000810000000000008000000600010000800000000000000400000000000020000000000000001000000800400000000000020020400000000000000000000000000001000008000000000001000000000000000000002040082010000000000000000000000000000000001000000011020008010000000000000000000000000000000000000000000400000000880000000","logs":[{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x0","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x1","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x00000000000000000000000017e495e6c8c0675af62bc6ed5f259e0f3895993c"],"removed":false,"logIndex":"0x2","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x57e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","data":"0x0000000000000000000000000000000000000000000000015bea42a80d02e639","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000443a6243a36ef0ae1c46523d563c15abd787f4e9","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x3","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x000000000000000000000000443a6243a36ef0ae1c46523d563c15abd787f4e9"],"removed":false,"logIndex":"0x4","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x443a6243a36ef0ae1c46523d563c15abd787f4e9","data":"0xfffffffffffffffffffffffffffffffffffffffffffffffea415bd57f2fd19c70000000000000000000000000000000000000000000000016bfd734946ec7468000000000000000000000000000000000000000105744b2596af8ca9adbbf08f0000000000000000000000000000000000000000003eafef35583db9096b125b00000000000000000000000000000000000000000000000000000000000001a5","topics":["0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67","0x00000000000000000000000017e495e6c8c0675af62bc6ed5f259e0f3895993c","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x5","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x57e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","data":"0x0000000000000000000000000000000000000000000000015bea42a80d02e639","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x0000000000000000000000000000000000000000000000000000000000000000"],"removed":false,"logIndex":"0x6","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x000000000000000000000000000000000000000000000001a7931245f199aa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x00000000000000000000000057e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x7","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x0000000000000000000000000000000000000000000000015bea42a80d02e638","topics":["0x9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb","0x00000000000000000000000057e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x8","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x000000000000000000000000000000000000000000000001a78ef6889661ca1d000000000000000000000000000000000000000000000001a7912839114676a80000000000000000000000000000000000000000000000015be6e2c7a4e25e8d","topics":["0x8b2a1e1ad5e0578c3dd82494156e985dade827a87c573b5c1c7716a32162ad64","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x9","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xd51cb0fa9a91f156a80188a18f039140704b8df7","data":"0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c0000000000000000000000000000000000000000000000016e45f7485569e78b000000000000000000000000000000000000000000000001a78ef6889661ca1e00000000000000000000000051a2d500506a56e53c5c04a5435800ca88d60fe5","topics":["0xa4b3513a5f822f3e098a6a12338b3f07613cb130b75c90a250ab181402f4bb87"],"removed":false,"logIndex":"0xa","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x763b29b97e75fb54923325d46bab2807ac8c43c5","data":"0x0000000000000000000000000000000000000000000000016e45f7485569e78b000000000000000000000000000000000000000000000001a78ef6889661ca1e","topics":["0xf154a899b3b867021c992026539485521c86f83735a958729ab118b9ce7a6407","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0xb","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x00000000000000000000000000000000000000000000000000041bbd5b37e002","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x000000000000000000000000e81678de308c783471489e4c9caa51d1f4e7cb3d"],"removed":false,"logIndex":"0xc","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x00000000000000000000000000000000000000000000000000035fe0682087ab","topics":["0x9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x000000000000000000000000e81678de308c783471489e4c9caa51d1f4e7cb3d"],"removed":false,"logIndex":"0xd","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"}],"type":"0x2"}} eth_getLogs{"id":1,"jsonrpc":"2.0","result":[{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x74","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x75","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x00000000000000000000000017e495e6c8c0675af62bc6ed5f259e0f3895993c"],"removed":false,"logIndex":"0x76","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x57e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","data":"0x0000000000000000000000000000000000000000000000015bea42a80d02e639","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000443a6243a36ef0ae1c46523d563c15abd787f4e9","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x77","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x60e1773636cf5e4a227d9ac24f20feca034ee25a","data":"0x0000000000000000000000000000000000000000000000016bfd734946ec7468","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x000000000000000000000000443a6243a36ef0ae1c46523d563c15abd787f4e9"],"removed":false,"logIndex":"0x78","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x443a6243a36ef0ae1c46523d563c15abd787f4e9","data":"0xfffffffffffffffffffffffffffffffffffffffffffffffea415bd57f2fd19c70000000000000000000000000000000000000000000000016bfd734946ec7468000000000000000000000000000000000000000105744b2596af8ca9adbbf08f0000000000000000000000000000000000000000003eafef35583db9096b125b00000000000000000000000000000000000000000000000000000000000001a5","topics":["0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67","0x00000000000000000000000017e495e6c8c0675af62bc6ed5f259e0f3895993c","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x79","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x57e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","data":"0x0000000000000000000000000000000000000000000000015bea42a80d02e639","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x0000000000000000000000000000000000000000000000000000000000000000"],"removed":false,"logIndex":"0x7a","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x000000000000000000000000000000000000000000000001a7931245f199aa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x00000000000000000000000057e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x7b","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x0000000000000000000000000000000000000000000000015bea42a80d02e638","topics":["0x9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb","0x00000000000000000000000057e3bb9f790185cfe70cc2c15ed5d6b84dcf4adb","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x7c","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x000000000000000000000000000000000000000000000001a78ef6889661ca1d000000000000000000000000000000000000000000000001a7912839114676a80000000000000000000000000000000000000000000000015be6e2c7a4e25e8d","topics":["0x8b2a1e1ad5e0578c3dd82494156e985dade827a87c573b5c1c7716a32162ad64","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x7d","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xd51cb0fa9a91f156a80188a18f039140704b8df7","data":"0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c0000000000000000000000000000000000000000000000016e45f7485569e78b000000000000000000000000000000000000000000000001a78ef6889661ca1e00000000000000000000000051a2d500506a56e53c5c04a5435800ca88d60fe5","topics":["0xa4b3513a5f822f3e098a6a12338b3f07613cb130b75c90a250ab181402f4bb87"],"removed":false,"logIndex":"0x7e","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0x763b29b97e75fb54923325d46bab2807ac8c43c5","data":"0x0000000000000000000000000000000000000000000000016e45f7485569e78b000000000000000000000000000000000000000000000001a78ef6889661ca1e","topics":["0xf154a899b3b867021c992026539485521c86f83735a958729ab118b9ce7a6407","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c"],"removed":false,"logIndex":"0x7f","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x00000000000000000000000000000000000000000000000000041bbd5b37e002","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x000000000000000000000000e81678de308c783471489e4c9caa51d1f4e7cb3d"],"removed":false,"logIndex":"0x80","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"},{"address":"0xaaa93ac72becfbbc9149f293466bbdaa4b5ef68c","data":"0x00000000000000000000000000000000000000000000000000035fe0682087ab","topics":["0x9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb","0x000000000000000000000000c4dcea20265fb62bcd4a77d31fa0351c0d19353c","0x000000000000000000000000e81678de308c783471489e4c9caa51d1f4e7cb3d"],"removed":false,"logIndex":"0x81","transactionIndex":"0x61","transactionHash":"0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a","blockHash":"0xda1ba218adc163101801dd8894a7378abe5fdc4c62dc7056dcc96ec5f039ef64","blockNumber":"0x3e8872"}]} |
Also a good chance to capture some timing data:
That's not great. |
Taking the speed question to #12255 where I think we can do significantly better. But on the specifics of this bug, the difference is in the path we take to get the logs. For lotus/node/impl/full/eth_utils.go Lines 766 to 789 in 2714a84
Lines 410 to 420 in 2714a84
But for lotus/chain/events/filter/index.go Lines 342 to 380 in 2714a84
The
|
I'm going to try out the patch, but first here's a quick dump of the problem here: curl http://localhost:1234/rpc/v1 -X POST -H "Content-Type: application/json" --data '{"method":"eth_getTransactionReceipt","params":["0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a"],"id":1,"jsonrpc":"2.0"}' | jq .result.logs > /tmp/transaction_receipt.logs
curl http://localhost:1234/rpc/v1 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "0x3E8872", "toBlock": "0x3E8872"}],"id":1}' | jq .result > /tmp/get_logs.logs
diff /tmp/get_logs.logs /tmp/transaction_receipt.logs
|
Deploying my mainnet node with #12265 (libp2p) #12261 (events db perf improvements) and #12265 (attempted fix for this) the good news is that my db perf improvements are working well.
Something about the ordering of messages going into this I think. We either have to get to the bottom of that and match them, or just resort to using the events db for canonical indexing. |
Oh, and |
Interesting to note about the diff is that it's lotus/chain/events/filter/event.go Line 435 in c053d71
I think we have one bug here in our events db index calculation, it should increment the event count regardless: lotus/chain/events/filter/index.go Lines 351 to 354 in c053d71
But that's not the problem here, if I add in the check as suggested here: #12262 (comment) I don't find the msg. So we're counting up all events and using that as our start. I'm not sure why we can't find the message though yet. |
Checklist
Latest release
, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Repro Steps
{"method":"eth_getTransactionReceipt","params":["0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a"],"id":1,"jsonrpc":"2.0"}
{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "0x3E8872", "toBlock": "0x3E8872"}],"id":1}
logIndex
Describe the Bug
As per repro steps:
{"method":"eth_getTransactionReceipt","params":["0x29ef3cd631c072f2ab3650f0e20a4b678e11c711786004583aa2f071c8cfb74a"],"id":1,"jsonrpc":"2.0"}
returns logs withlogIndex
ranging from0x0
to0xd
.{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock": "0x3E8872", "toBlock": "0x3E8872"}],"id":1}
returns logs withlogIndex
ranging from0x74
to0x81
logIndex
regardless of which method returned them.The issue is reproducible via these RPCs:
Logging Information
The text was updated successfully, but these errors were encountered: