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
Is it possible to RLP encode these 2 transactions into a 'custom' block then call debug_traceBlock using the RLP for this 'custom' block in which only contains these 2 tx's? If this is not possible via the usage of debug_traceBlock is there any other way to achieve this?
Here's some pseudocode demonstrating what I'm attempting to achieve:
//calling
var listOfTxns = [
{
from: "0xdeadbeef000000000000000000000000000000000,
to: "0x55550000000000000000000000000000000000000",
gas: "0x77777",
data: "0x00"
},
{
from: "0xdead0000000000000000000000000000000000000,
to:"0x22220000000000000000000000000000000000000",
gas: "0x77777",
data: "0x00"
}
];
var txListToRlpEncodedBlock = rlpEncode(listOfTxns);
debug_traceCustomBlock(currentBlockNumber, txListToRlpEncodedBlock)
//return value
[
{
<trace results for tx #1>
},
{
<trace results for tx #2>
}
]
The text was updated successfully, but these errors were encountered:
m-e-r-k-l-e-root
changed the title
Calling debug_traceBlock Against Current State Using 'Custom' Block
Calling debug_traceBlock Against Current State Using 'Custom' Block (similar to Parity's trace_callMany method)
Jun 4, 2021
After overviewing the geth codebase I've come to the conclusion there does not appear to be a built-in way to achieve what I'm trying to do, therefore I ended up writing my own go implementation for what I've described above.
m-e-r-k-l-e-root
changed the title
Calling debug_traceBlock Against Current State Using 'Custom' Block (similar to Parity's trace_callMany method)
Calling debug_traceBlock Against Current State Using Arbitrarily Generated Block
Jun 5, 2021
Can debug_traceBlock be used for tracing an arbitrarily generated block against current state?
I.e. assume there are 2 transactions,
tx #1 looks something along the lines of:
and tx #2 looks something along the lines of:
Is it possible to RLP encode these 2 transactions into a 'custom' block then call debug_traceBlock using the RLP for this 'custom' block in which only contains these 2 tx's? If this is not possible via the usage of debug_traceBlock is there any other way to achieve this?
Here's some pseudocode demonstrating what I'm attempting to achieve:
The text was updated successfully, but these errors were encountered: