aboutsummaryrefslogtreecommitdiffstats
path: root/eth/tracers
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-26 11:16:22 +0800
committerGitHub <noreply@github.com>2019-03-26 11:16:22 +0800
commit54ab3efcd95426d2f126a7b0fe99dd0a4751b944 (patch)
tree3490a2f367a6a51dff2d89fdd8a8610d20ca98a0 /eth/tracers
parent6031f16bddde8913b774c9583e750012a8d83743 (diff)
downloaddexon-54ab3efcd95426d2f126a7b0fe99dd0a4751b944.tar
dexon-54ab3efcd95426d2f126a7b0fe99dd0a4751b944.tar.gz
dexon-54ab3efcd95426d2f126a7b0fe99dd0a4751b944.tar.bz2
dexon-54ab3efcd95426d2f126a7b0fe99dd0a4751b944.tar.lz
dexon-54ab3efcd95426d2f126a7b0fe99dd0a4751b944.tar.xz
dexon-54ab3efcd95426d2f126a7b0fe99dd0a4751b944.tar.zst
dexon-54ab3efcd95426d2f126a7b0fe99dd0a4751b944.zip
core: set extended round block reward to zero (#298)
To discourage DKG set from prolonging the round indefinitely, we set the block reward of the extended round to 0. The gas fee is send to the DEXON governance owner for safe keeping and later used by the foundation.
Diffstat (limited to 'eth/tracers')
-rw-r--r--eth/tracers/tracers_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go
index 2d6b0023b..1436cc67f 100644
--- a/eth/tracers/tracers_test.go
+++ b/eth/tracers/tracers_test.go
@@ -180,6 +180,7 @@ func TestPrestateTracerCreate2(t *testing.T) {
t.Fatalf("failed to prepare transaction for tracing: %v", err)
}
st := core.NewStateTransition(evm, msg, new(core.GasPool).AddGas(tx.Gas()))
+ core.TestingMode = true
if _, _, _, err = st.TransitionDb(); err != nil {
t.Fatalf("failed to execute transaction: %v", err)
}