Gav Wood
5ceb1b084c
Add missing args and some new JSONs for testing.
2016-06-19 14:49:06 +02:00
Gav Wood
2245baaaab
Provide CLI options to disable aspects of soft-fork.
...
Soft-fork will remain default behaviour, but you can now disable
either the whole mechanism (you'll lose money if you mine with this
when the majority network doesn't) or just vote against it but
otherwise go with the flow.
2016-06-19 13:20:14 +02:00
Tomasz Drwięga
8fad728e9b
Fixing locks order ( #1328 )
2016-06-19 12:33:50 +02:00
debris
026bfd6741
fixed incomplete merge
2016-06-19 02:09:17 +02:00
Gav Wood
bff1c5bdcb
Merge branch 'master' into softforktrigger
2016-06-18 20:55:50 +02:00
Gav Wood
d915eae7f7
Remove comment.
2016-06-18 20:54:44 +02:00
Gav Wood
2582253f95
Install trigger for DAO-rescue soft-fork.
...
Soft-fork should only be primed to trigger if the gas-limit of
block #1760000 is at most 4,000,000.
To accomplish this we pass in the gas limit of that block to
EnvInfo so it can inform Schedule. This gets marshalled through
`OpenBlock`/`ClosedBlock` and the `enact` functions much like
`last_hashes`. `block.rs`'s `env_info()` takes care to ensure
that if the current block happens to be #1760000 , then we
populate with the current `gas_limit`.
2016-06-18 20:26:44 +02:00
Marek Kotewicz
3617923d3c
Merge pull request #1324 from ethcore/renamefield
...
Update default gas limit, rename field
2016-06-18 20:22:05 +02:00
Tomasz Drwięga
81df97a737
Fixing warnings ( #1321 )
2016-06-18 15:11:10 +02:00
Gav Wood
d416e5d9bc
Merge branch 'master' into renamefield
2016-06-18 15:05:43 +02:00
Gav Wood
22e390f922
Rename block_dao -> reject_dao.
2016-06-18 15:00:12 +02:00
Arkadiy Paronyan
591fa9625d
Merge pull request #1313 from ethcore/net
...
Network start/stop
2016-06-18 11:04:24 +02:00
Gav Wood
42478add64
DAO Rescue soft fork ( #1309 )
...
* DAO Rescue soft fork
* Address minor issues.
* Fix tests.
2016-06-18 10:54:15 +02:00
Gav Wood
335bce85e8
Gas price statistics. ( #1291 )
...
* Gas price statistics.
Affects eth_gasPrice.
Added ethcore_gasPriceStatistics.
Closes #1265
* Fix a bug in eth_gasPrice
* Fix tests.
* Revert minor alteration.
* Tests for gas_price_statistics.
- Tests;
- Additional infrastructure for generating test blocks with
transactions.
2016-06-18 10:52:50 +02:00
Gav Wood
16412eb0c9
DAO Rescue soft fork ( #1309 )
...
* DAO Rescue soft fork
* Address minor issues.
* Fix tests.
2016-06-17 22:15:18 +02:00
arkpar
c340d8a34f
Tests
2016-06-17 18:26:54 +02:00
arkpar
b38488dd07
Network shutdown
2016-06-17 12:58:28 +02:00
Robert Habermeier
3850ee64bb
have StateRebuilder take a JournalDB and commit post-chunk
2016-06-17 12:56:57 +02:00
Robert Habermeier
f3c1643090
encode the account storage rlp with "append_raw"
2016-06-16 19:47:05 +02:00
Robert Habermeier
e4867d7cb9
properly rebuild state trie
2016-06-16 18:30:18 +02:00
Robert Habermeier
f45254d485
create chunks using append_raw
2016-06-16 16:39:42 +02:00
Robert Habermeier
0e917b9fa3
use ZST error type for snappy, use new snappy compression methods
2016-06-16 15:35:49 +02:00
Gav Wood
88b03580ff
Gas price statistics. ( #1291 )
...
* Gas price statistics.
Affects eth_gasPrice.
Added ethcore_gasPriceStatistics.
Closes #1265
* Fix a bug in eth_gasPrice
* Fix tests.
* Revert minor alteration.
* Tests for gas_price_statistics.
- Tests;
- Additional infrastructure for generating test blocks with
transactions.
2016-06-16 12:44:08 +02:00
Robert Habermeier
7ca5c115d8
validate all compressed buffers
2016-06-15 19:18:49 +02:00
Robert Habermeier
25f1f22c86
use account_pair in feed
2016-06-15 18:41:02 +02:00
Robert Habermeier
0e3a15cadb
add a state rebuilder
2016-06-15 17:46:40 +02:00
Robert Habermeier
d7498c1dd5
rename AccountReader to Account, give a separate module
2016-06-15 16:42:49 +02:00
Robert Habermeier
a2bb3f2832
account storage decoding implemented
2016-06-15 16:34:11 +02:00
Marek Kotewicz
549647b6f2
fixed #1261 , overflow when calculating work ( #1283 )
...
* fixed #1261 , overflow when calculating work
* tests for difficulty_to_boundary
* return !U256::zer() for boundary <= 1
2016-06-15 16:33:38 +02:00
Robert Habermeier
d26e038dc7
fix bug in account code storage, add to_thin_rlp for AccountReader
2016-06-15 15:59:21 +02:00
Robert Habermeier
9badb310ae
remove snappy_buffer_size constant in favor of max_compressed_len
2016-06-15 13:05:00 +02:00
Robert Habermeier
53b3a6f0a1
use UntrustedRlp in to_block
2016-06-15 12:45:04 +02:00
Robert Habermeier
17a60920cb
adjust comments
2016-06-14 19:14:41 +02:00
Robert Habermeier
3290f393bd
block rlp compression
2016-06-14 18:34:27 +02:00
Robert Habermeier
874bc808cb
add some missing header setters
2016-06-14 18:12:05 +02:00
Robert Habermeier
8ed2b9c7d9
refactor out common parts of write_chunk
2016-06-14 15:32:49 +02:00
Robert Habermeier
dfb603dd08
compress into reusable buffers
2016-06-14 13:22:15 +02:00
Robert Habermeier
16e58958c9
use snappy compression on buffers
2016-06-14 12:32:51 +02:00
Robert Habermeier
b88eef5374
use append_empty_data rather than fibbing it
2016-06-14 11:48:34 +02:00
debris
0b8710a2a1
removed redundant if condition
2016-06-14 03:04:06 +02:00
Robert Habermeier
835b158069
store account code if it exists
2016-06-13 21:05:06 +02:00
Robert Habermeier
5cc6a681c9
push pair onto block chunker buffer
2016-06-13 20:48:12 +02:00
Robert Habermeier
5b6ea41d9d
no longer lock the state db
2016-06-13 20:02:20 +02:00
Robert Habermeier
c36f47bbbf
rename pv64_snapshot trace target to snapshot
2016-06-13 20:00:47 +02:00
Robert Habermeier
22a19819c6
rename pv64 module to snapshot
2016-06-13 20:00:00 +02:00
Marek Kotewicz
4ef4819bf9
removed try_seal from MinerClient interface ( #1262 )
2016-06-13 18:51:14 +02:00
Robert Habermeier
6ec282fe98
Merge with latest master
2016-06-13 16:35:59 +02:00
Robert Habermeier
98c7677ce1
expose only chunk_blocks and chunk_state APIs
2016-06-13 16:29:26 +02:00
Robert Habermeier
446d59426a
io error handling and slight blockchunker refactoring
2016-06-13 16:21:23 +02:00
Robert Habermeier
f478812441
remove spammy account trace
2016-06-13 15:36:02 +02:00