Commit Graph

2166 Commits

Author SHA1 Message Date
Felix Lange
f0f6727778 p2p: use an error type for disconnect requests
Test-tastic.
2014-12-15 00:28:20 +01:00
Felix Lange
65e39bf20e p2p: add MsgPipe for protocol testing 2014-12-15 00:28:20 +01:00
Felix Lange
e28c60caf9 p2p: improve and test eofSignal 2014-12-12 11:40:02 +01:00
Felix Lange
9423401d73 p2p: fix decoding of disconnect reason (fixes #200) 2014-12-12 11:40:02 +01:00
Jeffrey Wilcke
ce0c4e5d86 Merge pull request #203 from fjl/rlp-fixes
RLP: remove signed integer support and other fixes
2014-12-10 00:06:17 +01:00
Felix Lange
6cf4e0329c rlp: display decoder target type in more error messages
Decode error messages now say "expected input list for foo.MyStruct"
instead of just "expected List".
2014-12-09 22:28:49 +01:00
Felix Lange
829730dec4 rlp: remove dead code 2014-12-09 12:49:20 +01:00
Felix Lange
c084a7daa5 rlp: fix panic in decodeList on go 1.4+
The documentation for reflect.Value.Index states that it will
panic for out-of-bounds indices. Since go 1.4, it actually panics.
2014-12-09 10:58:46 +01:00
Felix Lange
93e858f88e rlp: remove support for signed integer types
There is no agreement on how to encode negative integers
across implementations. cpp-ethereum doesn't support them either.
2014-12-09 10:58:46 +01:00
Felix Lange
4f12f0697e rlp: move decoder type switch to decode.go 2014-12-09 10:52:05 +01:00
obscuren
195b2d2ebd Merge branch 'fjl-feature/p2p-protocol-interface' into poc8 2014-12-05 16:27:37 +01:00
obscuren
384b8c75f0 Merge branch 'feature/p2p-protocol-interface' of https://github.com/fjl/go-ethereum into fjl-feature/p2p-protocol-interface 2014-12-05 16:27:11 +01:00
Jeffrey Wilcke
710360bab6 Merge pull request #199 from ethereum/tests
Submit code coverage to coveralls only on travis build success
2014-12-04 23:00:12 +01:00
obscuren
296112848c Moved block validation as first step 2014-12-04 15:13:29 +01:00
obscuren
008e91db6a null ptr fix 2014-12-04 12:43:12 +01:00
obscuren
3043b233ea Log is now interface 2014-12-04 12:35:23 +01:00
obscuren
bff5999efa sort tests for evm 2014-12-04 12:09:22 +01:00
obscuren
f298ffdbb8 Renamed State => StateDB 2014-12-04 11:40:20 +01:00
obscuren
3664cd58e3 Updated testing tools 2014-12-04 11:30:41 +01:00
obscuren
491edc16e7 Fixes #189 2014-12-04 10:57:09 +01:00
obscuren
83663ed4b0 Renames for chain, updated VM, moved methods
* Renamed a couple more chain => core
* Updated VM `pc` to be uint64 rather than big int
* XEth interface cleanup
2014-12-04 10:53:49 +01:00
obscuren
9008b155d3 Renamed chain => core 2014-12-04 10:28:02 +01:00
obscuren
b6cb5272de Descriptive function names for closure getters 2014-12-03 17:35:57 +01:00
obscuren
6d99c03d91 Updated environments according to the new interface set 2014-12-03 17:22:26 +01:00
obscuren
99853ac3ce Moved execution from vm to chain.
This moves call and create to the specified environments. Vms are no
longer re-used. Vm uses environment's Call(Code) and Create in order to
execute new contracts or transfer value between accounts.

State transition now uses the same mechanism described above.
2014-12-03 17:06:54 +01:00
obscuren
8240550187 updated to types 2014-12-03 14:05:19 +01:00
obscuren
709eff4ea7 reverted vm back 2014-12-03 13:52:30 +01:00
obscuren
6212175be3 reverted vm back 2014-12-03 13:52:13 +01:00
obscuren
6095edac58 merge 2014-12-03 13:50:51 +01:00
obscuren
3d9a4e7084 Fixed mem error in vm. Fixed logs tests 2014-12-03 12:21:12 +01:00
obscuren
f778922086 Set proper message value 2014-12-02 22:37:45 +01:00
obscuren
edc52bdcbf Updated value for mined blocks. Closes #197 2014-12-02 22:23:20 +01:00
obscuren
0a22dc2ce5 Check coinbase for from/to inclusion 2014-12-02 22:22:43 +01:00
obscuren
cb4d168ecc Updated LOG to match proper gas in all cases 2014-12-02 17:22:33 +01:00
obscuren
5ebae82eeb Additional logging and removed temp merged mining options. 2014-12-02 12:23:27 +01:00
obscuren
64f35ba8d1 merge errors fixed 2014-12-02 11:52:56 +01:00
obscuren
99481a245a Check for known block err and ignore 2014-12-02 11:37:33 +01:00
obscuren
9f7a8ea5e6 updated tests 2014-12-02 10:29:39 +01:00
obscuren
b4eeffa8f1 Transaction strictness 2014-12-02 00:14:34 +01:00
obscuren
2df8ad6307 Added state tests 2014-12-02 00:03:53 +01:00
obscuren
a052357872 Fixed EXP gas 2014-12-01 22:05:38 +01:00
obscuren
a22056db59 Make an attempt to pay for the gas prior to expanding the mem. 2014-12-01 20:49:56 +01:00
obscuren
beb7d35c40 Updated tests 2014-12-01 20:21:41 +01:00
obscuren
d33987cb44 Additional fees for *COPY 2014-12-01 20:20:55 +01:00
obscuren
6dc46d3341 Changed the way transactions are being added to the transaction pool 2014-12-01 20:18:09 +01:00
obscuren
616066a598 rework vm 2014-11-30 21:02:59 +01:00
obscuren
1bce02eff7 Fixed merge 2014-11-28 21:44:34 +01:00
obscuren
a3559c5e1b updated PV 2014-11-28 21:38:10 +01:00
obscuren
c8d0f8adc5 Changed refund 2014-11-28 21:20:32 +01:00
obscuren
6ba8328077 Removed min gas price from genesis 2014-11-28 20:57:10 +01:00