mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
minor
This commit is contained in:
parent
0aaaf34825
commit
2db37b9471
1 changed files with 2 additions and 1 deletions
|
|
@ -36,6 +36,8 @@ type transfer struct {
|
||||||
Value *big.Int `json:"value"`
|
Value *big.Int `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// tracer is a simple tracer that records all ether transfers.
|
||||||
|
// This includes tx value, call value, and self destructs.
|
||||||
type tracer struct {
|
type tracer struct {
|
||||||
transfers []transfer
|
transfers []transfer
|
||||||
}
|
}
|
||||||
|
|
@ -48,7 +50,6 @@ func (t *tracer) CaptureStart(env *vm.EVM, from common.Address, to common.Addres
|
||||||
if value.Cmp(common.Big0) > 0 {
|
if value.Cmp(common.Big0) > 0 {
|
||||||
t.transfers = append(t.transfers, transfer{From: from, To: to, Value: value})
|
t.transfers = append(t.transfers, transfer{From: from, To: to, Value: value})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *tracer) CaptureEnd(output []byte, gasUsed uint64, err error) {
|
func (t *tracer) CaptureEnd(output []byte, gasUsed uint64, err error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue