You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should move to the debug namespace because it is more performant and better supported by rpc providers. This will require some algorithmic changes. Mainly, sync-historical will have to iterate block by block, but can skip using eth_getTransactionReceipt.
This is probably not a complete list, but I can envision us needing some of these:
shouldIncludeTrace() A trace can succeed, error, or succeed and be the child of a trace that errored. This function should return true in the first case, and false otherwise.
getTraceCheckpoint() Return the checkpoint for a trace. The difficult part of this is going to be the executionIndex. This is going to require ordering all traces in a transaction, using depth first search. It's gonna be a huge improvement over the previous design.
We should move to the
debug
namespace because it is more performant and better supported by rpc providers. This will require some algorithmic changes. Mainly,sync-historical
will have to iterate block by block, but can skip usingeth_getTransactionReceipt
.Tasks
sync-realtime
sync-historical
Helper functions
This is probably not a complete list, but I can envision us needing some of these:
shouldIncludeTrace()
A trace can succeed, error, or succeed and be the child of a trace that errored. This function should return true in the first case, and false otherwise.getTraceCheckpoint()
Return the checkpoint for a trace. The difficult part of this is going to be theexecutionIndex
. This is going to require ordering all traces in a transaction, using depth first search. It's gonna be a huge improvement over the previous design.ponder/packages/core/src/sync-store/index.ts
Lines 725 to 742 in d143b99
Other notes
Is it possible to order traces and logs interweaved?
The text was updated successfully, but these errors were encountered: