Open nepoche opened 3 years ago
Tried to reproduce your issue here: https://github.com/PureStake/frontier/blob/tgm-426
Please build with manual-seal
and run the typescript tests - it will run only test-chain-grow.ts
(https://github.com/PureStake/frontier/blob/tgm-426/ts-tests/tests/test-chain-grow.ts). It took ~1 hour to run for me locally:
eth_getLogs
for the address
and topics
.All requests received responses and no timeout errors were thrown, so I couldn't reproduce it. Should output something like this:
Created 5000 blocks, transact.
1
10001
20001
...
180001
190001
{
jsonrpc: '2.0',
result: [
{
address: '0xc2bf5f29a4384b1ab0c063e1c666f02121b6084a',
blockHash: '0xd33d12ddba40a8d3f644342ae827dd355b46696b499c44189faac943dfdf1362',
blockNumber: '0x1',
data: '0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
logIndex: '0x0',
removed: false,
topics: [Array],
transactionHash: '0x049dac83a9d5274c6754f1b03f7b8753203c8c51e01c07b9c3da761ec0e3bd60',
transactionIndex: '0x0',
transactionLogIndex: '0x0'
}
],
id: 1
}
{ jsonrpc: '2.0', result: [], id: 1 }
{ jsonrpc: '2.0', result: [], id: 1 }
{ jsonrpc: '2.0', result: [], id: 1 }
..
{ jsonrpc: '2.0', result: [], id: 1 }
{ jsonrpc: '2.0', result: [], id: 1 }
Description
I am attempting to build a dApp on a substrate chain, Beresheet, which is using a version of frontier which has been forked off of commit
6e2e90833fdb9ee92f8e0a04fe0d217bfe07100d
: https://github.com/webb-tools/frontier/tree/erup-4-update-master-substrate. https://github.com/hicommonwealth/edgeware-node/tree/erup-4-up-substrate-masterThis dApp makes use of the
eth_getLogs
RPC call for previous interactions with a smart contract. I have noticed RPC requests performance degrades as the size of the blockchain increases. At the time of contract deployment (blockNumber ~5000), I was able to query in 1000 block increments and successfully receive responses. As the chain has grown (blockNumber ~167000 at time of writing), I receive timeouts for my RPC requests even when shrinking the range of block increments to 200 blocks.Steps to Reproduce
Logs, Errors or Screenshots
I have noticed the following error as well, but less frequently than the former: