Yuriy Glukhov
0adfaf0f31
s/increaseBalance/addBalance
2018-09-19 18:41:17 +03:00
Yuriy Glukhov
75f973e654
Fixed test
2018-09-19 18:41:17 +03:00
Dustin Brody
048921b045
20 new working GeneralStateTests
2018-09-18 14:00:30 +00:00
coffeepots
4f03c9cf2a
Merge pull request #139 from status-im/callOpCodeWork
...
Flesh out call op
2018-09-18 14:09:00 +01:00
coffeepots
4a944398c9
More newMemoryDb updates
2018-09-18 12:18:59 +01:00
coffeepots
760e4f9685
Adjust trie creation to properly init transactional tries
2018-09-18 12:02:34 +01:00
Dustin Brody
fe761cd4ff
14 additional GeneralStateTests and clean up some empty hex string parsing kludginess
2018-09-17 13:41:32 +00:00
Dustin Brody
beb1befc6e
13 additional GeneralStateTests working; remove commented auto-ported Py-EVM validations which are implicit in UInt256; address comments to last commit (toSeq, hoising vmState.readOnlyStateDB, deltaBalance -> increaseBalance)
2018-09-17 13:41:32 +00:00
Dustin Brody
7ba90fda54
48 new working GeneralStateTests, via fixing some overflows/underflows, creating a rudimentary balance commit/revert scheme, and implementing account deletion for the selfdestruct instruction ( #146 )
2018-09-14 13:43:40 +00:00
Dustin Brody
22882edf4d
get 106 more generalstatetests working by detecting computation errors and allowing empty code accounts ( #145 )
2018-09-13 15:00:23 +00:00
Dustin Brody
3cc7e9d8fd
skip 1000+ tests which either are slow (quadratic tests) or don't support Homestead; add ~50 new working tests ( #143 )
2018-09-12 16:33:53 +00:00
Yuriy Glukhov
62260c786d
Caching DB backend
2018-09-12 17:53:15 +03:00
Dustin Brody
00c4df6153
detect erronous transactions and roll back to previous state, without refunding any gas, per yellow paper ( #141 )
2018-09-11 13:15:59 +00:00
Dustin Brody
e24f7fe144
unskip some other (failing) tests
2018-09-10 19:42:45 +03:00
Dustin Brody
fd07d6fed1
A simple/basic GeneralStateTest runner which gets 400+ of them correct
2018-09-10 19:42:45 +03:00
Yuriy Glukhov
3a1ec035b3
Various fixes towards state reconstruction
2018-09-07 14:00:37 +03:00
Dustin Brody
9e1be6438e
Extract transaction senders from GeneralStateTest fixtures
2018-09-06 11:20:43 +03:00
Dustin Brody
4262ea8670
fix (1) overflow/signed confusion when reading large-valued storage entries; (2) adjust test fixture validity for GeneralStateTests; (3) remove incorrect usage of state trie for code (not codehash) storage; add ability to display state; (4) avoid double-hashing keys for already-hashed SecureHexaryTrie for storage; (5) add intentionally local workaround for empty code in GeneralStateTest fixtures lacking 0x prefix; (6) fix nonce parsing, which is always hex string in test fixtures
2018-09-04 17:55:30 +03:00
coffeepots
bda219f8fe
Make tests green (AccountNonce)
2018-09-02 03:26:22 +01:00
Jacek Sieka
db202dc35f
replace logging module with nim-chronicles ( fixes #38 )
...
This blindly changes logging to nim-chronicles - issues that ensue:
* keeps gas cost computation logs hidden behind flag
* unclear if logScope is practical - for example, since vm is split over
many files, topics get lost when using simple top-level per-module
topics
* when passing named object around, scope should incliude the name of
the object but this is caught neither by logScope nor by dynamicLogScope
2018-08-29 16:13:03 -06:00
Yuriy Glukhov
e3be8ca30a
Separate Chain from ChainDB
2018-08-29 11:49:01 +03:00
coffeepots
fd7062fecb
Fix VMTest message creation in 32 bits, also duplicated word in comment
2018-08-17 17:16:40 +03:00
coffeepots
5cd81ef3ac
Update doAssert to display the correct contents of stint values
2018-08-17 17:16:40 +03:00
coffeepots
1bf432fd46
Fix for VMTest parseHex in 32 bit
2018-08-17 17:16:40 +03:00
Dustin Brody
a12b0771d6
remove superflous when true block, retained from when VMTests wasn't passing
2018-08-16 16:07:45 -04:00
coffeepots
fb185b7965
Update RPC signatures
2018-08-13 19:26:34 +01:00
coffeepots
0b5d8d53be
Added EthHashStr tests
2018-08-13 19:03:09 +01:00
coffeepots
d1f283b004
Updated test_rpc to use EthAddressStr
2018-08-13 17:34:54 +01:00
coffeepots
6aab8b05c5
Included tests for EthAddressStr
2018-08-13 17:34:14 +01:00
Dustin Brody
3c0d27021e
remove callcreates-handling code in VMTests harness ( #102 )
...
(1) callcreates, empirically, is always missing or empty in VMTests
(2) by policy, callcreates will not be in new VMTests
(3) the code was broken regardless, in a couple of since-removed VMTests which had non-empty callcreates
2018-08-09 21:58:51 +00:00
coffeepots
ac2de74d8f
Standardised test between data and quantity, added tests for "0x"
2018-08-09 13:50:49 +03:00
coffeepots
a0833475d4
Rename test suite
2018-08-09 13:50:49 +03:00
coffeepots
a48e1e96c5
Rename test suite
2018-08-09 13:50:49 +03:00
coffeepots
f3ccd72f91
Remove redundant account creation, already done in mutateStateDb
2018-08-09 13:50:49 +03:00
coffeepots
155457d47f
Basic eth node setup for RPC testing (WIP)
2018-08-09 13:50:49 +03:00
coffeepots
c5514155ee
Add tests for JSON RPC hex strings
2018-08-09 13:50:49 +03:00
coffeepots
79abeafa41
Setup test rpc server, initial call to eth_getBalance
2018-08-09 13:50:49 +03:00
Dustin Brody
7fd2fa6184
Run VMTests as part of nimble tests, as well as Appveyor and Travis CI
2018-08-07 13:15:56 -07:00
Dustin Brody
21fcaeb8ef
add inexpensive vmPerformanceTests, especially Ackermann and Fibonacci tests; whole suite still runs in a few seconds
2018-08-07 12:24:37 -07:00
Dustin Brody
ea2f3b71bf
Complete VM Test sync, with EXP(0, 0) defined as 1 now ( #98 )
2018-08-07 18:41:01 +00:00
Yuriy Glukhov
467a9c3d7a
Merge pull request #93 from status-im/genesis
...
Added genesis initialization
2018-08-06 18:02:39 +03:00
Dustin Brody
6a3fa4cb22
Merge pull request #94 from status-im/FixLog3Log4CallDataCopyRandomTestFixtures
...
fix assorted test fixtures which have been un-skipped
2018-08-03 21:07:36 +00:00
Dustin Brody
e2dd3ae051
Import current official GeneralStateTests
2018-08-03 13:18:04 -07:00
Dustin Brody
71679d6d95
fix assorted test fixtures which have been un-skipped
2018-08-02 15:57:28 -07:00
Dustin Brody
8325b6461f
Stop skipping all but time-intensive vmPerformance VMTests by default
2018-08-02 09:37:16 -07:00
Dustin Brody
d94dfbdb43
following https://github.com/ethereum/tests/pull/444 synchronize with upstream test changes by removing many which rely on mocking BLOCKHASH/BALANCE just for VM tests ( #92 )
2018-08-02 14:21:42 +02:00
Yuriy Glukhov
c4f4a37d2c
Added genesis initialization
2018-08-01 15:50:44 +03:00
Dustin Brody
1b781aefe9
pursuant to discussion in https://github.com/ethereum/tests/pull/444 refactor tests to not require special-cased codepaths for a VMTest mode by allowing BLOCKHASH-dependent tests to live where actual blockchain state is provided by fixture
2018-07-31 17:09:37 -07:00
Dustin Brody
1921f9b389
arith.json, boolean.json, and mktx.json test fixtures don't provide useful information ( #90 )
2018-07-30 17:29:13 +02:00
Yuriy Glukhov
84515b78a9
Align DB backend interfaces with eth_trie. Init BaseChainDB in nimbus.
2018-07-30 16:05:32 +03:00