@@ -24,7 +24,6 @@ import (
2424
2525 "github.com/XinFinOrg/XDPoSChain/common"
2626 "github.com/XinFinOrg/XDPoSChain/core/rawdb"
27- "github.com/XinFinOrg/XDPoSChain/core/tracing"
2827 "github.com/XinFinOrg/XDPoSChain/core/types"
2928 "github.com/XinFinOrg/XDPoSChain/crypto"
3029 "github.com/XinFinOrg/XDPoSChain/ethdb"
@@ -49,11 +48,11 @@ func TestDump(t *testing.T) {
4948
5049 // generate a few entries
5150 obj1 := s .state .GetOrNewStateObject (common .BytesToAddress ([]byte {0x01 }))
52- obj1 .AddBalance (big .NewInt (22 ), tracing . BalanceChangeUnspecified )
51+ obj1 .AddBalance (big .NewInt (22 ))
5352 obj2 := s .state .GetOrNewStateObject (common .BytesToAddress ([]byte {0x01 , 0x02 }))
5453 obj2 .SetCode (crypto .Keccak256Hash ([]byte {3 , 3 , 3 , 3 , 3 , 3 , 3 }), []byte {3 , 3 , 3 , 3 , 3 , 3 , 3 })
5554 obj3 := s .state .GetOrNewStateObject (common .BytesToAddress ([]byte {0x02 }))
56- obj3 .SetBalance (big .NewInt (44 ), tracing . BalanceChangeUnspecified )
55+ obj3 .SetBalance (big .NewInt (44 ))
5756
5857 // write some of them to the trie
5958 s .state .updateStateObject (obj1 )
@@ -101,13 +100,13 @@ func TestIterativeDump(t *testing.T) {
101100
102101 // generate a few entries
103102 obj1 := s .state .GetOrNewStateObject (common .BytesToAddress ([]byte {0x01 }))
104- obj1 .AddBalance (big .NewInt (22 ), tracing . BalanceChangeUnspecified )
103+ obj1 .AddBalance (big .NewInt (22 ))
105104 obj2 := s .state .GetOrNewStateObject (common .BytesToAddress ([]byte {0x01 , 0x02 }))
106105 obj2 .SetCode (crypto .Keccak256Hash ([]byte {3 , 3 , 3 , 3 , 3 , 3 , 3 }), []byte {3 , 3 , 3 , 3 , 3 , 3 , 3 })
107106 obj3 := s .state .GetOrNewStateObject (common .BytesToAddress ([]byte {0x02 }))
108- obj3 .SetBalance (big .NewInt (44 ), tracing . BalanceChangeUnspecified )
107+ obj3 .SetBalance (big .NewInt (44 ))
109108 obj4 := s .state .GetOrNewStateObject (common .BytesToAddress ([]byte {0x00 }))
110- obj4 .AddBalance (big .NewInt (1337 ), tracing . BalanceChangeUnspecified )
109+ obj4 .AddBalance (big .NewInt (1337 ))
111110
112111 // write some of them to the trie
113112 s .state .updateStateObject (obj1 )
@@ -203,7 +202,7 @@ func TestSnapshot2(t *testing.T) {
203202
204203 // db, trie are already non-empty values
205204 so0 := state .getStateObject (stateobjaddr0 )
206- so0 .SetBalance (big .NewInt (42 ), tracing . BalanceChangeUnspecified )
205+ so0 .SetBalance (big .NewInt (42 ))
207206 so0 .SetNonce (43 )
208207 so0 .SetCode (crypto .Keccak256Hash ([]byte {'c' , 'a' , 'f' , 'e' }), []byte {'c' , 'a' , 'f' , 'e' })
209208 so0 .selfDestructed = false
@@ -215,7 +214,7 @@ func TestSnapshot2(t *testing.T) {
215214
216215 // and one with deleted == true
217216 so1 := state .getStateObject (stateobjaddr1 )
218- so1 .SetBalance (big .NewInt (52 ), tracing . BalanceChangeUnspecified )
217+ so1 .SetBalance (big .NewInt (52 ))
219218 so1 .SetNonce (53 )
220219 so1 .SetCode (crypto .Keccak256Hash ([]byte {'c' , 'a' , 'f' , 'e' , '2' }), []byte {'c' , 'a' , 'f' , 'e' , '2' })
221220 so1 .selfDestructed = true
0 commit comments