Gav Wood
c2f4716ee2
icarus -> update, increase web timeout. ( #4165 )
...
* icarus -> update, increase web timeout.
* Fix estimate gas
2017-01-13 16:30:16 +01:00
Robert Habermeier
f0eab337d8
Merge pull request #4036 from ethcore/on-demand-les-request
...
On demand LES request
2017-01-13 14:36:48 +01:00
Arkadiy Paronyan
cdc525449a
Ropsten fork detection ( #4163 )
2017-01-13 14:28:10 +01:00
Tomasz Drwięga
e11353f94c
UnverifiedTransaction type ( #4134 )
...
* Introducing ValidSignedTransaction
* Verifiying transactions in engines
* Widening use of VerifiedSignedTransaction
* Renaming Transactions
* Uncommenting banning queue & Fixing tests
* Fixing json tests
* Fixing pre-homestead test
* Fixing imports
* Addressing grumbles
* Fixing test
2017-01-13 08:51:36 +00:00
Robert Habermeier
7dde02b25d
Merge branch 'master' into on-demand-les-request
2017-01-12 11:23:47 +01:00
Gav Wood
311730ea95
Improvements and optimisations to estimate_gas ( #4142 )
...
* Return 0 instead of error with out of gas on estimate_gas
* Fix stuff up.
* Another estimate gas fix.
* Alter balance to maximum possible rather than GP=0.
* Only increase to amount strictly necessary.
* Improvements and optimisations to estimate_gas.
- Introduce proper error type
- Avoid building costly traces
* Fix tests.
* Actually fix testsActually fix tests
2017-01-12 11:06:12 +01:00
Robert Habermeier
78e670812c
fix test compilation
2017-01-11 18:57:38 +01:00
keorn
844b1f8c0d
Refactor VoteCollector ( #4101 )
...
* dir
* simple validator list
* stub validator contract
* make the engine hold Weak<Client> instead of IoChannel
* validator set factory
* register weak client with ValidatorContract
* check chain security
* add address array to generator
* register provider contract
* update validator set on notify
* add validator contract spec
* simple list test
* split update and contract test
* contract change
* use client in tendermint
* fix deadlock
* step duration in params
* adapt tendermint tests
* add storage fields to test spec
* constructor spec
* execute under wrong address
* create under correct address
* revert
* validator contract constructor
* move genesis block lookup
* add removal ability to contract
* validator contract adding validators
* fix basic authority
* validator changing test
* more docs
* update sync tests
* remove env_logger
* another env_logger
* cameltoe
* hold EngineClient instead of Client
* return error on misbehaviour
* nicer return
* sprinkle docs
2017-01-11 17:56:50 +01:00
Gav Wood
56c546f465
Another minor estimation fix ( #4133 )
...
* Return 0 instead of error with out of gas on estimate_gas
* Fix stuff up.
* Another estimate gas fix.
* Alter balance to maximum possible rather than GP=0.
* Only increase to amount strictly necessary.
2017-01-11 17:51:48 +01:00
Robert Habermeier
7123f19a75
Test harness for lightsync ( #4109 )
...
* make on_connect/disconnect public
* free flow params constructor
* Shared ownership of LES handlers
* light provider impl for test client
* skeleton for testing light sync
* have test_client use actual genesis
* fix underflow in provider
* test harnesses for lightsync
* fix tests
* fix test failure caused by test_client changes
2017-01-11 14:39:03 +01:00
Gav Wood
7286d42b7d
Fix call/estimate_gas ( #4121 )
...
* Return 0 instead of error with out of gas on estimate_gas
* Fix stuff up.
2017-01-11 14:28:27 +01:00
Tomasz Drwięga
21006da125
Get rid of unsafe code in ethkey, propagate incorrect Secret errors. ( #4119 )
...
* Implementing secret
* Fixing tests
2017-01-11 12:16:47 +01:00
Robert Habermeier
5b8a7259c1
Merge branch 'master' into on-demand-les-request
2017-01-11 11:39:43 +01:00
Gav Wood
23feb7998f
Use binary chop to estimate gas accurately ( #4100 )
...
* Initial sketch.
* Building.
* Fix a few things.
* Fix issue, add tracing.
* Address grumbles
* Raise upper limit if needed
* Fix test.
2017-01-10 18:56:41 +01:00
Arkadiy Paronyan
148ea37687
v1.6 in master ( #4113 )
2017-01-10 15:41:59 +01:00
Gav Wood
ae144b7f62
Ignore get_price_info test by default. ( #4112 )
2017-01-10 15:41:48 +01:00
keorn
be30c44179
Validator/authority contract ( #3937 )
...
* dir
* simple validator list
* stub validator contract
* make the engine hold Weak<Client> instead of IoChannel
* validator set factory
* register weak client with ValidatorContract
* check chain security
* add address array to generator
* register provider contract
* update validator set on notify
* add validator contract spec
* simple list test
* split update and contract test
* contract change
* use client in tendermint
* fix deadlock
* step duration in params
* adapt tendermint tests
* add storage fields to test spec
* constructor spec
* execute under wrong address
* create under correct address
* revert
* validator contract constructor
* move genesis block lookup
* add removal ability to contract
* validator contract adding validators
* fix basic authority
* validator changing test
* more docs
* update sync tests
* remove env_logger
* another env_logger
* cameltoe
* hold EngineClient instead of Client
* add a comment about lock scope
2017-01-10 12:23:59 +01:00
Tomasz Drwięga
a584c6396c
Don't remove out of date local transactions ( #4094 )
2017-01-09 17:01:09 +01:00
Robert Habermeier
9c00eb4e8a
Zero-alloc trie lookups ( #3998 )
...
* triedb cleanup
* factor out common portion of trie query
* allocate far fewer times in node decoding
* fix bench compilation
* introduce OwnedNode variant to make iter fast again
* generalize recorder trait to Query
* decode trie outputs cost-free in state
* test for passing closure as query
2017-01-06 16:18:45 +01:00
Tomasz Drwięga
eb0daea9b9
Removing old transactions from the queue ( #4046 )
...
* Removing old transactions from the queue
* Addressing grumbles
2017-01-05 21:16:52 +01:00
keorn
fbc9f0d7fb
Add block rewards to more Engines ( #4055 )
...
* add block rewards
* imports
2017-01-05 21:16:13 +01:00
Robert Habermeier
b4e713efdc
return old trie values on insert and remove ( #4053 )
...
* return old trie values on insert and remove
* fix json tests
2017-01-05 21:15:43 +01:00
Tomasz Drwięga
91f864b2b7
Fixing minGasLimit > ceil limit mining issue ( #4018 )
2017-01-05 12:59:16 +00:00
Robert Habermeier
75b5acf21d
use common BasicAccount type
2017-01-05 13:26:14 +01:00
Robert Habermeier
8446a8354b
Merge branch 'master' into on-demand-les-request
2017-01-05 13:18:24 +01:00
Robert Habermeier
f1dd96ca5d
Merge pull request #3892 from ethcore/lightsync
...
Naive light client synchronization
2017-01-05 13:17:14 +01:00
Maciej Hirsz
881066243b
Merge pull request #4034 from maciejhirsz/mh-pwmsg
...
Better error messages for PoA chains, closes #4030
2017-01-05 11:13:45 +01:00
keorn
93237045b8
Merge pull request #4019 from ethcore/optional-spec
...
Make some spec fields optional
2017-01-04 19:25:42 +01:00
Robert Habermeier
6ad0a0baaa
fix test imports
2017-01-04 16:12:58 +01:00
Robert Habermeier
ed98c389ca
no_peers test
2017-01-04 14:54:50 +01:00
Robert Habermeier
62bc92ff4d
Merge branch 'master' into on-demand-les-request
2017-01-04 14:33:45 +01:00
Robert Habermeier
38ac84f0c7
reassign requests on failure
2017-01-04 14:33:32 +01:00
Robert Habermeier
ca35b345ca
separate request dispatch from creation
2017-01-04 13:58:26 +01:00
Robert Habermeier
1d51b6f7e5
handle incoming LES requests
2017-01-04 13:34:50 +01:00
maciejhirsz
8ca0e09ffc
Better error messages for PoA chains
2017-01-04 12:50:50 +01:00
Robert Habermeier
4e94f43644
tests for request module
2017-01-04 12:48:07 +01:00
Robert Habermeier
01977e60aa
finish request module, basic dispatch
2017-01-03 19:13:40 +01:00
Robert Habermeier
5d2cf22ef4
use basic_account in snapshot
2017-01-03 17:05:27 +01:00
Robert Habermeier
eb2b1ad5da
move basic_account to types module
2017-01-03 16:43:22 +01:00
Robert Habermeier
7c715aeec3
basic account type
2017-01-03 16:32:50 +01:00
Robert Habermeier
4dbbc3bc88
beginnings of on_demand request module + verification
2017-01-03 16:18:57 +01:00
keorn
e5b3c092c8
Merge branch 'master' into optional-spec
2017-01-03 15:42:56 +01:00
Tomasz Drwięga
b24fc97cb6
Correct log index in transaction receipt ( #3995 )
...
* Moving logs to separate, testable function
* Adding test
* Fixing log index
* Adding transaction log index
* Fixing rpc tests
* Making interface of a bit cleaner.
2016-12-29 18:48:28 +00:00
Robert Habermeier
ddf2b944b5
on demand request dispatch
2016-12-28 21:46:55 +01:00
Robert Habermeier
4daa645789
dispatch header requests
2016-12-28 16:20:46 +01:00
Robert Habermeier
5309ba45a8
update peer status from announcement
2016-12-28 16:20:35 +01:00
Robert Habermeier
e6324a83f1
Merge branch 'master' into lightsync
2016-12-28 15:53:11 +01:00
Robert Habermeier
c2ad769fb7
Merge branch 'master' into on-demand-les-request
2016-12-28 14:00:33 +01:00
Robert Habermeier
fe1f542c4f
Owning views of blockchain data ( #3982 )
...
* owning views of blockchain data
* port blockchain and client traits to owning views
* fix ethcore tests
* use strong headers and bodies in ethcore_light
* port ethsync to use owning views
* port rpc to owning views
* port parity informant and blockchain export
2016-12-28 12:44:51 +00:00
Robert Habermeier
428d5db9d1
beginning of on_demand
2016-12-27 16:43:28 +01:00