271 Commits

Author SHA1 Message Date
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
coffeepots
9b53f8cda4 Updated traceTransaction to accept a hash 2018-11-29 17:09:59 +00:00
coffeepots
8d4c00cd3f Removed utils from p2p and updated names in rpc_utils 2018-11-29 17:08:13 +00:00
coffeepots
a5aad977dd Merge remote-tracking branch 'origin/rpc_eth_call' 2018-11-29 16:15:52 +00:00
andri lim
f6d9308208 add TODO comment and trigger ci rebuild 2018-11-29 12:12:25 +02:00
andri lim
af84be0eea keep in sync with eth_common#23 2018-11-29 12:12:25 +02:00
coffeepots
184143ba65 Update return types 2018-11-28 22:27:15 +00:00
coffeepots
f6cd02ff3f Relax JSON to UInt256 length constraint, refactor err msgs 2018-11-28 22:04:57 +00:00
andri lim
21070d510d add TransactionKey to persistTransactions and add more fat to debug_traceTransaction 2018-11-28 09:25:36 +07:00
coffeepots
5681c355ef Update comment 2018-11-26 19:40:29 +00:00
coffeepots
d269bd07c5 Remove default gas price (is zero instead) and use gasLimit from header 2018-11-26 11:28:38 +00:00
andri lim
161d6adbc7 implement persistTransactions and getBlockBody 2018-11-24 08:00:58 +07:00
coffeepots
a279915175 Refactored variable setup to ensure sensible defaults 2018-11-23 18:24:42 +00:00
coffeepots
a20a18f8e8 Add converter from Json to UInt256 2018-11-23 17:21:03 +00:00
coffeepots
dc5e62951a Make eth_call use optional params 2018-11-23 17:20:20 +00:00
andri lim
a2b9167e2b extend rpc api cli and implement debug_traceTransaction stub 2018-11-22 13:40:09 +07:00
coffeepots
1f0766c5d4 Add initTransaction 2018-11-20 17:35:11 +00:00
coffeepots
826206d054 Fill in eth_call 2018-11-20 17:31:17 +00:00
coffeepots
553605875b Update types to avoid early casting to strings and keep type strictness 2018-11-20 17:30:04 +00:00
coffeepots
e51a4632cd Update RPC types to be inline with internal expectations and stay to spec 2018-11-20 17:27:22 +00:00
coffeepots
f99138dca6 Merge branch 'call-fixes-precompiles' 2018-11-12 15:57:54 +00:00
coffeepots
1cead76327 Add note about cyclic dep 2018-11-08 16:40:40 +00:00
coffeepots
6eb430fd52 Fix CREATE op code gas costs, more debug output, call transactions 2018-11-08 16:00:21 +00:00
coffeepots
492d2ae676 Debug message for new messages 2018-11-08 15:48:32 +00:00
coffeepots
6b1e989ff0 Add initial gas cost for CREATE 2018-11-08 15:47:48 +00:00
Yuriy Glukhov
bac452f589 Initial TransactionTracer impl 2018-10-28 14:38:05 +01:00
Dustin Brody
d97cc50afc fix eth_trie/constants missing compile error 2018-10-19 07:44:08 -07:00
coffeepots
7ba1cfaf13 Remove endian code, precompiles should now run. Removed raise as case stmt is full now. 2018-10-19 14:41:04 +01:00
coffeepots
434edcc2ae Fix incorrect message parameters (had sender and destination swapped) 2018-10-18 17:47:54 +01:00
cheatfate
0b15b86195 Fix ecMul, ecPairing, ecAdd. 2018-10-16 11:49:13 +03:00
Zahary Karadjov
41adca1abb Minimal changes required for building the LES branch 2018-10-16 03:10:01 +03:00
coffeepots
6e4616e443 Precompiles now executed if called from vm_state_transactions 2018-10-12 16:16:14 +01:00
coffeepots
67df44e917 Fix ecrecover, pad ripemd result and use sha256 vs keccak256 2018-10-10 17:36:11 +01:00
mratsim
bb6e1e1d76 modExp precompiles: fix padding and static evaluation 2018-10-10 16:26:21 +02:00
mratsim
0494e2a877 Support short inputs with missing bytes 2018-10-05 17:37:52 +02:00
mratsim
38b4d54815 Add modExp precompile + gas costs 2018-10-05 17:26:20 +02:00
cheatfate
9318ea93cf Added nim-bncurve dependency.
Added implementation of `ecAdd`, `ecMul`, `ecPairing` precompiles.
2018-10-05 12:15:04 +03:00
Zahary Karadjov
343cc4fa43 Populate the persistent databases with the empty RLP key.
Also implements transactional block persistence. Two issues
in the transaction processing code have been discovered that
might affect other usages such as the CALL instruction.

The main fix gets us past block 49000.

You may need to clean up your database.
2018-10-05 03:36:48 +03:00
Dustin Brody
7aa0c386dd some simplification and cleanup 2018-10-04 17:52:58 +00:00
coffeepots
6a4cd4ec67 Update precompile gas costs case (cosmetic change) 2018-10-03 17:59:41 +01:00
coffeepots
3249c3e048 Add precompile costs 2018-10-03 16:39:34 +01:00
coffeepots
3deb09bbb6 Add SHA256, RIPEMD160 and Identity precompiles 2018-10-03 13:33:19 +01:00
coffeepots
fcffd94469 Support different endians 2018-10-02 16:39:01 +01:00
coffeepots
36270ff4d5 Fixes for Call gas usage, Calls use precompiles, pass down their opCode 2018-10-02 16:07:16 +01:00
coffeepots
e2087f0922 Remove precompile hash table 2018-10-02 15:55:28 +01:00
coffeepots
62968bf733 Initial support for precompiles with ecRecover 2018-10-02 15:46:39 +01:00