fix gst state clearing, GST +5

This commit is contained in:
andri lim 2019-04-24 21:03:10 +07:00
parent 03ea1c5a85
commit 8ecbce6d0c
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
3 changed files with 9 additions and 15 deletions

View File

@ -1710,10 +1710,10 @@ OK: 16/16 Fail: 0/16 Skip: 0/16
+ gasPrice0.json OK
+ makeMoney.json OK
sha3_deja.json Skip
txCost-sec73.json Skip
+ txCost-sec73.json OK
+ tx_e1c174e2.json OK
```
OK: 9/13 Fail: 0/13 Skip: 4/13
OK: 10/13 Fail: 0/13 Skip: 3/13
## stStackTests
```diff
+ shallowStack.json OK
@ -2210,15 +2210,15 @@ OK: 42/42 Fail: 0/42 Skip: 0/42
+ ZeroValue_SUICIDE_ToNonZeroBalance_OOGRevert.json OK
+ ZeroValue_SUICIDE_ToOneStorageKey_OOGRevert.json OK
+ ZeroValue_TransactionCALL_OOGRevert.json OK
ZeroValue_TransactionCALL_ToEmpty_OOGRevert.json Skip
+ ZeroValue_TransactionCALL_ToEmpty_OOGRevert.json OK
+ ZeroValue_TransactionCALL_ToNonZeroBalance_OOGRevert.json OK
ZeroValue_TransactionCALL_ToOneStorageKey_OOGRevert.json Skip
+ ZeroValue_TransactionCALL_ToOneStorageKey_OOGRevert.json OK
+ ZeroValue_TransactionCALLwithData_OOGRevert.json OK
ZeroValue_TransactionCALLwithData_ToEmpty_OOGRevert.json Skip
+ ZeroValue_TransactionCALLwithData_ToEmpty_OOGRevert.json OK
+ ZeroValue_TransactionCALLwithData_ToNonZeroBalance_OOGRevert.jsonOK
ZeroValue_TransactionCALLwithData_ToOneStorageKey_OOGRevert.jsonSkip
+ ZeroValue_TransactionCALLwithData_ToOneStorageKey_OOGRevert.jsonOK
```
OK: 20/24 Fail: 0/24 Skip: 4/24
OK: 24/24 Fail: 0/24 Skip: 0/24
## stZeroCallsTest
```diff
+ ZeroValue_CALL.json OK
@ -2520,4 +2520,4 @@ OK: 130/133 Fail: 0/133 Skip: 3/133
OK: 130/130 Fail: 0/130 Skip: 0/130
---TOTAL---
OK: 2182/2334 Fail: 0/2334 Skip: 152/2334
OK: 2187/2334 Fail: 0/2334 Skip: 147/2334

View File

@ -17,7 +17,6 @@ func allowedFailingGeneralStateTest*(folder, name: string): bool =
"randomStatetest85.json", # CALL* memoffset
"sha3_deja.json", # SHA3 startPos
"txCost-sec73.json",
"CreateOOGafterInitCodeReturndataSize.json",
"RevertInCreateInInit.json",
@ -64,11 +63,6 @@ func allowedFailingGeneralStateTest*(folder, name: string): bool =
"ecpairing_perturb_zeropoint_by_field_modulus.json",
"ecpairing_perturb_g2_by_field_modulus.json",
"ZeroValue_TransactionCALL_ToOneStorageKey_OOGRevert.json",
"ZeroValue_TransactionCALL_ToEmpty_OOGRevert.json",
"ZeroValue_TransactionCALLwithData_ToEmpty_OOGRevert.json",
"ZeroValue_TransactionCALLwithData_ToOneStorageKey_OOGRevert.json",
# byzantium slow
"LoopCallsDepthThenRevert3.json",
"LoopCallsDepthThenRevert2.json",

View File

@ -114,7 +114,7 @@ proc testFixtureIndexes(tester: Tester, testStatusIMPL: var TestStatus) =
if tester.fork >= FkSpurious:
let recipient = tester.tx.getRecipient()
let miner = tester.header.coinbase
let touchedAccounts = [sender, miner, recipient]
let touchedAccounts = [miner] # [sender, miner, recipient]
for account in touchedAccounts:
debug "state clearing", account
if db.accountExists(account) and db.isEmptyAccount(account):