Commit Graph

715 Commits

Author SHA1 Message Date
Bruno Škvorc 0c2e3eb204
Update README.md 2019-01-02 14:50:44 +01:00
Bruno Škvorc e24bf52624
Update README.md 2019-01-02 14:50:29 +01:00
Ștefan Talpalaru d556cf7641
Merge branch 'jangko-fix_datadir' 2018-12-28 13:14:29 +01:00
andri lim 40f094f6d5 fix datadir typo 2018-12-28 15:24:57 +07:00
Bruno Škvorc f874f675a0
Update README.md 2018-12-27 15:32:35 +01:00
andri lim 83e01994df add total count to test helpers 2018-12-26 23:45:57 +02:00
Ștefan Talpalaru 6a24701bbf
Merge branch 'segfault' 2018-12-18 14:27:28 +01:00
Ștefan Talpalaru 048a43b2f1
better error handling
- added some useful `chronicles` defines in the top-level nim.cfg
- converted some assert() calls to error codes to avoid a reported
  segfault with -d:release
- the recoverable errors are being recovered from, in persistWorkItem()
- the only case that's a show stopper raises an exception
2018-12-17 23:36:38 +01:00
andri lim ff08a6ad95 fix some typo 2018-12-16 15:38:51 +02:00
andri lim d3380f6cf0 fix test 2018-12-16 15:38:51 +02:00
andri lim 8c6cec4999 fix getTransactionReceipt 2018-12-16 15:38:51 +02:00
andri lim 9c0bb70ba7 working makeReceipt 2018-12-16 15:38:51 +02:00
andri lim ad1202f98a initial make_receipt 2018-12-16 15:38:51 +02:00
Ștefan Talpalaru f8d3d0e721
Merge branch 'tracing' 2018-12-12 11:49:30 +01:00
Ștefan Talpalaru f91e69f7c7
more VM tracing
The existing vmState tracing is plugged into chronicles, at the TRACE
level, to facilitate state test debugging.

Some useful chronicles defines are added to "tests/nim.cfg" to simplify
the compile-and-run command for individual tests.
2018-12-12 11:47:10 +01:00
Bruno Škvorc 7ae5f6f8eb
Merge pull request #191 from status-im/Swader-add-job-appveyor-badges
Add separate badges for appveyor jobs
2018-12-12 00:57:35 +01:00
Ștefan Talpalaru d633bb9ebf
Merge branch 'generalstate' 2018-12-07 18:37:12 +01:00
Ștefan Talpalaru 115843487c
general-state testsuite changes and better fork selection
- skipped the tests in allowedFailInCurrentBuild()
- replaced doAssert() with check() in testFixtureIndexes() so we can see
  both hash values on failure
- checking filename extension for JSON tests to avoid editor swap files
- replaced the duplicated block values in the main net's ChainConfig
  with values from forkBlocks
- allowed overriding the current fork in computations, because the old
  strategy of only looking at the block number doesn't work with JSON tests
  where the block number is usually 1
- explicitly pass the fork to gasCosts() and use it for conditional cost
  calculation
- fixed a logic error in the CREATE opcode
- fixed VM selection based on current fork in updateOpcodeExec()
- single point of control for supported forks in tests (just one fork, at the
  moment)
- 44 new test failures (that were probably passing for the wrong reasons)
2018-12-07 18:18:29 +01:00
coffeepots 8f0a78e52f
Merge pull request #192 from status-im/logging
logging changes
2018-12-07 10:53:37 +00:00
Ștefan Talpalaru 03ec65487d
logging changes
- port some "echo" logging to "chronicles"
- change the logging level of messages that should not appear by default
  to TRACE instead of DEBUG
- remove the "nimbusTrace" define
- suppress logging for messages below the ERROR level in "nimble test"
2018-12-07 00:45:52 +01:00
Bruno Škvorc 3d21157a70
Add separate badges for appveyor jobs
Appveyor does not support badges per job yet, so this is a workaround. Badges much less customizable and using 3 proxy services, but it's a solution unless we want to roll our own server with little things like these. Had to list the windows jobs because the badges look the same, and pure text with no list doesn't look so good. Ideas for improving visuals?
2018-12-06 15:39:24 +01:00
coffeepots 86853ea97c
Merge pull request #187 from status-im/modexp-fixes
Modexp fixes
2018-12-06 10:10:59 +00:00
coffeepots 51df75a296 Add WhisperFilterOptions 2018-12-05 19:11:17 +02:00
coffeepots ef172a857a Update new filter signature 2018-12-05 19:11:17 +02:00
coffeepots ce3c8eaf05 Update whisper types to be optional 2018-12-05 19:11:17 +02:00
coffeepots 2ece661b24
Merge pull request #186 from jangko/add_prune_cli
add prune cli switch and implement transaction tracer
2018-12-05 15:16:10 +00:00
andri lim 4563049f89 Merge branch 'add_prune_cli' of https://github.com/jangko/nimbus into add_prune_cli 2018-12-05 22:03:20 +07:00
andri lim b29f5b1321 put traceTransaction into action 2018-12-05 22:01:29 +07:00
andri lim fe5ddf757b fix trace returnValue 2018-12-05 22:01:29 +07:00
andri lim 572de41507 tracing opcode return value 2018-12-05 22:01:29 +07:00
andri lim 7a3ddfec87 correcting account storage retrieval 2018-12-05 22:01:29 +07:00
andri lim c954dc7d62 fix tests 2018-12-05 22:01:29 +07:00
andri lim 0b7b577af6 add more options to debug_traceTransaction 2018-12-05 22:01:29 +07:00
andri lim 8d42ad997e reorder captureDB in traceTransaction 2018-12-05 22:01:29 +07:00
andri lim 2552d6452a fix traceTransaction 2018-12-05 22:01:29 +07:00
andri lim 5509c66cce implement transaction tracer 2018-12-05 22:01:28 +07:00
andri lim a098285a7b put prune switch into usage 2018-12-05 21:58:34 +07:00
andri lim 4885445735 add prune cli switch 2018-12-05 21:58:34 +07:00
mratsim 4d07d99f66 Add precompiles to all tests to prevent regressions 2018-12-04 16:32:11 +01:00
mratsim 24bcb3b2d8 remove log2 spurious comment 2018-12-04 15:56:18 +01:00
mratsim f50bb57eb6 Reactivate the precompiles test + consume gas 2018-12-04 15:52:59 +01:00
mratsim 29f8a8a066 modExp fixed! 2018-12-04 15:46:33 +01:00
mratsim 6d93bdffea modExp, support up to uint4096 2018-12-04 14:39:10 +01:00
mratsim 949c5a1dc6 Modexp fix example 1 (returned to early for ints of length 1) 2018-12-04 12:49:48 +01:00
andri lim 157415fb44 put traceTransaction into action 2018-12-04 18:42:55 +07:00
andri lim 3570dd60ad fix trace returnValue 2018-12-04 17:56:16 +07:00
andri lim 0140ff5d5a tracing opcode return value 2018-12-04 15:53:03 +07:00
andri lim 186ffe2288 correcting account storage retrieval 2018-12-04 15:13:35 +07:00
andri lim a532b3f7ce fix tests 2018-12-04 09:06:53 +07:00
andri lim 581ec4b8f7 add more options to debug_traceTransaction 2018-12-04 09:01:56 +07:00