Commit Graph

62 Commits

Author SHA1 Message Date
cheatfate c42bbf6d63 Fix: no help on empty command line. 2018-05-02 18:04:54 +03:00
cheatfate bb49e935f6 Added Discovery4Service as working prototype. 2018-05-02 18:01:10 +03:00
cheatfate fac64467f2 Add nim-eth-p2p dependency.
Add ENode support to arguments parsing.
2018-05-01 03:47:35 +03:00
cheatfate 9c86166827 Added IP address checking. 2018-04-30 11:14:08 +03:00
cheatfate 4fbc4104cc Initial commit. 2018-04-30 11:14:08 +03:00
Mamy Ratsimbazafy 6654576c6a
Few steps forward vm_tests (#15)
* Enable vm_tests, remove usage of from keyword as a variable name

* Fix Genesis types and use the new EthTime

* Add a new VMKind enum (py-evm vmclass runtime type)

* renaming block_obj to block_types

* chain.BlockHeader and utils.header.Header are the same thing (BlockHeader in py-evm)

* For now blockNumbers are UInt256

* EoD merge: vm_test compiles and does not throw computation error

* running full transactions is too early
2018-04-14 12:40:41 +02:00
mratsim 48c389e57c Fix #17: EthTime break by upstream commit f6df2d9956 2018-04-14 11:20:17 +02:00
Yuriy Glukhov 4da71f76b9 Fixed TTInt rlp encoding. Fixes #9. (#12) 2018-04-12 12:34:20 +02:00
mratsim a5b2652f85 Remove direct ranges call see: https://travis-ci.org/status-im/nimbus/builds/365051359#L502 2018-04-12 09:59:37 +03:00
mratsim b7d949eec2 Use new memrange and nim rlp 2018-04-12 09:59:37 +03:00
mratsim 41ffbc4049 Rebase 2018-04-12 09:59:37 +03:00
Mamy Ratsimbazafy 3021bb957f
Switch to nimcrypto (#8) 2018-04-11 16:32:19 +02:00
coffeepots 4a40cac4aa
Merge branch 'master' into EthTime 2018-04-10 18:16:25 +01:00
Coffepots 79e74f3da3 Remove double line and use ttmath for generating u256 2018-04-06 19:34:11 +01:00
Coffepots c66afe18dd Revert keccak change, get test_opcode to run 2018-04-06 19:29:47 +01:00
Coffepots 59b28cd1b2 More descriptive comment on timestamp 2018-04-06 18:59:32 +01:00
Coffepots 4e1755a0bf Get test_opcode to run 2018-04-06 18:56:57 +01:00
Coffepots ea94447d48 Moved EthTime to constants, update more timestamps to EthTime 2018-04-06 17:01:41 +01:00
Coffepots fdcfe5ae2f Revert "Moved EthTime to constants, update more timestamps to EthTime"
This reverts commit a731f59bd3.
2018-04-06 16:24:39 +01:00
Coffepots a731f59bd3 Moved EthTime to constants, update more timestamps to EthTime 2018-04-06 16:22:32 +01:00
mratsim 5a3202f4d3 Update README badges and add dual-license header 2018-04-06 16:52:10 +02:00
Mamy Ratsimbazafy 284a026e51
Add opcode tests (#4) 2018-04-06 16:25:01 +02:00
Coffepots 078f7abf22 Merge branch 'master' of https://github.com/status-im/nimbus 2018-04-05 19:00:46 +01:00
Coffepots cafbc7f46d Added gas calculations, fleshed out generateHeaderFromParentHeader 2018-04-05 18:51:42 +01:00
Coffepots b40b3e078c Adding fork info 2018-04-05 18:32:18 +01:00
Yuriy Glukhov 1d81a7c7ba clang compilation error fixed (#5) 2018-04-04 17:47:31 +02:00
Alexander Ivanov c4361061c1 Opcode add test 2018-03-14 13:11:32 +02:00
Alexander Ivanov c1a8fa6381 Fix memory 2018-03-14 11:15:03 +02:00
Alexander Ivanov edac9af2a2 Improve types 2018-03-13 16:30:38 +02:00
Alexander Ivanov 8be1a51c64 Fix 80 arithmetic gas cost tests, improve exp gas cost 2018-02-28 17:06:05 +02:00
Alexander Ivanov f179695341 Fix arithmetic and save test progress in VMTests.md 2018-02-27 20:10:45 +02:00
Alexander Ivanov dc365b2e23 Fix tests 2018-02-26 14:00:15 +02:00
Alexander Ivanov 99921f38cb Pass more tests, use UInt256 more often
82 / 189 arithmetic
55 / 62 logic
77 / 78 stack

Most errors are the same sstore gascost bug, also next work on flow and memory
2018-02-20 19:27:43 +02:00
Alexander Ivanov aa1970013d Fix error functions 2018-02-16 11:32:25 +02:00
Alexander Ivanov 9c056b85de Pass first fixtures tests
Todo

Pass most VM opcode tests that we can (of those that don't depend
too much on porting the whole py-evm)

Simplify a bit the current py-evm-inspired internal loop arch
2018-02-14 18:38:01 +02:00
Alexander Ivanov 3a0596bac7 WIP tests based on fixtures 2018-02-13 19:18:08 +02:00
Alexander Ivanov 0d31382e3d Work on text fitures and decompiling bytecode 2018-02-12 18:59:50 +02:00
Alexander Ivanov df41fe270e Add the ttmath wrapper 2018-02-07 18:16:04 +02:00
Alexander Ivanov f918692496 Fix memory and gas tests 2018-02-07 11:50:15 +02:00
Alexander Ivanov 211d46e39e Finish the first memory impl and tests, stack tests, fixes validation 2018-02-06 21:20:06 +02:00
Alexander Ivanov a233cef719 CodeStream impl and tests, fix byte and string fields 2018-01-31 14:57:05 +02:00
Alexander Ivanov 62f1417439 WIP system instructions 2018-01-30 20:43:41 +02:00
Alexander Ivanov b9eb74fa26 WIP call (different call variants depending on fork) 2018-01-30 20:12:05 +02:00
Alexander Ivanov 69dccb1520 Invalid op 2018-01-30 16:44:52 +02:00
Alexander Ivanov dba3c4b971 Add logging ops 2018-01-30 16:35:12 +02:00
Alexander Ivanov 5a4b934f82 Add flow ops 2018-01-30 15:20:52 +02:00
Alexander Ivanov 59bef848aa Memory and storage opcodes: TODO stateDB handler for the storage to work 2018-01-30 15:07:37 +02:00
Alexander Ivanov 0ec03afced Block and stack ops, elegant stack/dup/swap multiple opcode short def 2018-01-30 14:51:43 +02:00
Alexander Ivanov e6e3f09ebd Start using the new rlpFields macro 2018-01-30 12:51:13 +02:00
Alexander Ivanov 0fa5c5fd94 Prepare the remaining opcodes, implement context opcodes 2018-01-29 21:38:24 +02:00