Open Damantino opened 1 week ago
I can't seem to be able to reproduce it neither on v1.2.15.7 nor on latest zkevm
Here is what I get on Cardona:
> { "id": 1, "jsonrpc": "2.0", "method": "eth_subscribe", "params": ["newPendingTransactions"] }
< {"jsonrpc":"2.0","id":1,"result":"0xbba81772d7f99d0750f8ad4290a62e62"}
Hi @V-Staykov the problem is not that it connects to the event, the problem is that it doesn't emit pending txs! Is that a feature or a bug?
Sorry, I got a bit confused, but got it now. So this currently works on a sequencer, but the RPC nodes don't hold the txpool, so they are not notified on a new pending transaction and thus the WS subscription is not updated.
maybe @mandrigin can elaborate on when and if it is planned for our txpool to copy the sequencer one.
@V-Staykov Thanks for the response and summonning @mandrigin .
Me and my team are building a block explorer for zkevm (https://polygon-zkevm.txain.com/) and would like to have access to show them if possible.
System information
output of git branch
Config File
Erigon Command (with flags/config):
./build/bin/cdk-erigon --config="/mnt/ethereum/cdk-erigon/hermezconfig-mainnet.yaml" --ws
Erigon RPC
./build/bin/rpcdaemon --datadir=/path/to/cdk-erigon/data --txpool.api.addr=localhost:9091 --private.api.addr=localhost:9091 --http.api=eth,erigon,web3,net,debug,trace,txpool,zkevm --ws --ws.compression
Expected behaviour
When I connect to the pending txs event, txs are emitted
Actual behaviour
It doesn't emit pending txs
Steps to reproduce the behaviour