ethereum / go-ethereum

Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
47.75k stars 20.22k forks source link

eth/tracers/logger: improve markdown logger #30805

Closed holiman closed 4 days ago

holiman commented 4 days ago

This PR improves the output of the markdown logger a bit.

Before

From: 0x000000000000000000000000000073656E646572 To: 0x0000000000000000000000007265636569766572 Data: ` Gas:10000000000 Value0` wei

Pc Op Cost Stack RStack Refund
0 PUSH1 3 [] 0
2 NOT 3 [0x40] 0
3 STOP 0 [0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf] 0

Output: ` Consumed gas:6 Error:`

After

Pre-execution info:

Pc Op Cost Refund Stack
0 PUSH1 3 0 []
2 NOT 3 0 [0x40]
3 STOP 0 0 [0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf]

Post-execution info: