Commit Graph

5092 Commits

Author SHA1 Message Date
obscuren 1e28b424e7 Default gas 2015-04-02 14:00:49 +02:00
Taylor Gerring 015453f5b3 Default Value to 0 for NewTxArgs 2015-04-02 13:55:53 +02:00
obscuren 55b1c1546b Moved to function 2015-04-02 13:55:35 +02:00
Taylor Gerring 118ad22ee5 Merge branch 'develop' into rpcfabian 2015-04-02 13:39:46 +02:00
Taylor Gerring 81de8ed091 Format code as hexdata 2015-04-02 13:38:12 +02:00
Taylor Gerring b86450aaae Guard from nil pointers 2015-04-02 13:27:58 +02:00
Taylor Gerring e402e1dc2e New args types with stricter checking 2015-04-02 13:17:55 +02:00
obscuren 79828531b1 updated ethereum.js 2015-04-02 13:13:11 +02:00
Taylor Gerring 14c14fd61f Output empty block as nil 2015-04-02 13:05:13 +02:00
Taylor Gerring 2efb89d544 Guard for nil *big.Int 2015-04-02 13:04:58 +02:00
obscuren 60da9a1289 Put the old hammer back in <3 2015-04-02 13:03:33 +02:00
obscuren 3f4c1aaf01 info => debug 2015-04-02 12:58:17 +02:00
obscuren 0f3bf7ef4d Fixes for balance 2015-04-02 12:57:04 +02:00
Taylor Gerring 585aec127c Don't ignore user-specified "include tx" param 2015-04-02 12:56:36 +02:00
Taylor Gerring edfd2757d9 Better decoding of uint* 2015-04-02 12:52:25 +02:00
Taylor Gerring b10e33c040 More types supported 2015-04-02 12:31:10 +02:00
Taylor Gerring cc45b4d8b5 Trim left only, not right 2015-04-02 12:30:42 +02:00
Taylor Gerring f89baa73e5 transactionRoot -> transactionsRoot 2015-04-02 12:30:22 +02:00
Taylor Gerring 85ebbc9aa5 Default BlockNumber to -1 when missing 2015-04-02 11:57:26 +02:00
Jeffrey Wilcke 7e13ee602e Merge pull request #625 from debris/nonenumerable
print nonenumerable properties of object in geth console && proper printing BigNumbers
2015-04-02 11:35:01 +02:00
Taylor Gerring c71ca1a089 Better nil handling 2015-04-02 11:32:50 +02:00
Marek Kotewicz f960fc066e fixed printing BigNumbers 2015-04-02 11:02:39 +02:00
Marek Kotewicz bb3ae3026e print nonenumerable properties of object in geth console 2015-04-02 01:53:33 +02:00
obscuren b8124ec791 Removed old (unused) argument 2015-04-01 23:58:26 +02:00
Jeffrey Wilcke 219d94c1dd Merge pull request #623 from Gustav-Simonsson/read_protocol_values_from_common_params
Read most protocol params from common/params.json
2015-04-01 23:37:17 +02:00
Gustav Simonsson c26c8d3a44 Read most protocol params from common/params.json
* Add params package with exported variables generated from
  github.com/ethereum/common/blob/master/params.json
* Use params package variables in applicable places
* Add check for minimum gas limit in validation of block's gas limit
* Remove common/params.json from go-ethereum to avoid
  outdated version of it
2015-04-02 06:22:32 +02:00
obscuren ab5c007376 Updated ethereum.js 2015-04-01 23:28:45 +02:00
obscuren 4391c38215 Changed getters on account objects. Closes #610
* GetCode
* GetNonce
* GetStorage
* GetBalance
2015-04-01 23:22:16 +02:00
Taylor Gerring 5d8be9c30d Fixed decoding for uint64 into bytes 2015-04-01 23:08:00 +02:00
obscuren 344b3556eb Fixed uncle rewards in miner
The uncle rewards were changed in the block processor. This change will
reflect those changes in the miner as well.
2015-04-01 21:18:41 +02:00
obscuren 516ec28544 sha3 stack check 2015-04-01 17:51:22 +02:00
obscuren 4e3ffbcf9b Squashed 'tests/files/' changes from 5f8a010..ab81bf2
ab81bf2 go fail

git-subtree-dir: tests/files
git-subtree-split: ab81bf28d6157657b0a1c0d598785f1ed23fdbb1
2015-04-01 17:50:19 +02:00
obscuren 109b27b552 Merge commit '4e3ffbcf9bae7e44e45fd1b6e504b3645040d73c' into develop 2015-04-01 17:50:19 +02:00
Taylor Gerring eac4d582d7 Patches 2015-04-01 17:49:22 +02:00
Taylor Gerring 1045015a3c Update nonce field 2015-04-01 17:48:53 +02:00
obscuren 96cf776f81 Check stack for BALANCE. Closes #622 2015-04-01 17:45:38 +02:00
obscuren f801183b8b Squashed 'tests/files/' changes from 29da5ea..5f8a010
5f8a010 go fials
6f7924a add cppjit fail
c21f368 update genesis test
de7266b update js example test

git-subtree-dir: tests/files
git-subtree-split: 5f8a0103c0456f9467b402fde3db4bcde345d53b
2015-04-01 17:41:58 +02:00
obscuren 516423cdac Merge commit 'f801183b8bea24ce9988fbd06c2f17fedfc3587f' into develop 2015-04-01 17:41:58 +02:00
obscuren 216ea425e4 corrected 2015-04-01 17:36:56 +02:00
obscuren 8e961df283 bumped network protocol 2015-04-01 17:10:42 +02:00
Jeffrey Wilcke fd171eff7f Merge pull request #592 from fjl/disco-ping-pong
Discovery bonding protocol
2015-04-01 17:10:10 +02:00
Felix Lange 76218959ab eth: update cpp bootnode address 2015-04-01 17:00:12 +02:00
Felix Lange a77c431e37 p2p/discover: fix off by one error causing buckets to contain duplicates 2015-04-01 17:00:12 +02:00
Felix Lange de7af720d6 p2p/discover: implement node bonding
This a fix for an attack vector where the discovery protocol could be
used to amplify traffic in a DDOS attack. A malicious actor would send a
findnode request with the IP address and UDP port of the target as the
source address. The recipient of the findnode packet would then send a
neighbors packet (which is 16x the size of findnode) to the victim.

Our solution is to require a 'bond' with the sender of findnode. If no
bond exists, the findnode packet is not processed. A bond between nodes
α and β is created when α replies to a ping from β.

This (initial) version of the bonding implementation might still be
vulnerable against replay attacks during the expiration time window.
We will add stricter source address validation later.
2015-04-01 17:00:12 +02:00
Taylor Gerring b6f0b40037 Respect fullTx option #614 2015-04-01 16:49:07 +02:00
Taylor Gerring 55b9689950 rename messages to types 2015-04-01 15:53:48 +02:00
Felix Lange 92928309b2 p2p/discover: add version number to ping packet
The primary motivation for doing this right now is that old PoC 8
nodes and newer PoC 9 nodes keep discovering each other, causing
handshake failures.
2015-04-01 15:53:04 +02:00
Taylor Gerring bea3879d6f If nil, type doesn't matter 2015-04-01 15:45:56 +02:00
Taylor Gerring ac03ff6f05 Fix block size output #613 2015-04-01 15:44:09 +02:00
Taylor Gerring 6e8ff578f1 Block nonce as data 2015-04-01 15:28:06 +02:00