Commit Graph

8923 Commits

Author SHA1 Message Date
Joel Burget d79a45fbf7 Merge branch 'geth1.6' into geth1.7.0-merge 2017-10-25 11:56:19 -04:00
Joel Burget 31f4acca56 Make IsQuorum the default configuration 2017-10-25 11:48:41 -04:00
Joel Burget 53173b96d4 Don't raise future block errors in Quorum mode. 2017-10-25 11:48:41 -04:00
Joel Burget a2ce1fadcc Make IsQuorum the default configuration 2017-10-25 11:46:51 -04:00
Joel Burget 71eb883a50 Merge fixups.
These are the items that weren't correct after my quick initial merge.
This should serve as a good first place to look if anything turns out to
be broken.
2017-10-24 14:22:34 -04:00
Joel Burget f614aeaf50 Merge tag 'v1.7.0' into geth1.7.0-merge 2017-10-24 14:22:33 -04:00
Joel Burget 69758f4a54 Don't raise future block errors in Quorum mode. 2017-10-23 14:43:58 -04:00
Rob 4909df0bd4 Added a format directive to the fatalf call in raft/snapshot.bytesToSnapshot() (#197)
Reformatted import statements
2017-10-22 22:04:51 -04:00
Brian Schroeder c0218f9052 Fix async tx submission 2017-10-19 15:47:25 -04:00
Patrick Mylund Nielsen 111fa57825 README.md: Add ZSL links (2) 2017-10-17 10:44:28 -04:00
Patrick Mylund Nielsen 7b8e1c053f README.md: Add ZSL links 2017-10-17 10:44:22 -04:00
Leo Arias 4ab6cee7e8 Fix the dash in the bootnode commands (#182) 2017-10-17 10:43:52 -04:00
Steven Roose 38105f3d4c Use latest block when pending is indicated with RAFT (#181) 2017-10-17 10:43:35 -04:00
Coenie Beyers 9af59264d6 Adding information regarding enode order in static-nodes.json (#174) 2017-10-17 10:41:46 -04:00
Guilherme Salgado ae9694e3a8 Add docs/new-block-code-walkthrough.md walkthrough for the creation of a new block (#140) 2017-10-17 10:40:40 -04:00
Joel Burget 4ce235f45b README.md: Add a few video links 2017-10-17 10:40:31 -04:00
Joel Burget aef3bf5dda Small spelling / grammar tweaks to design.md (#164) 2017-10-17 10:40:21 -04:00
Patrick Mylund Nielsen ece3a79607 private: Distinguish between privateFor being absent vs. an empty array to allow self-sending (#165) 2017-10-17 10:39:01 -04:00
Brian Schroeder a218568402 Dynamic raft membership support (#130) 2017-10-17 10:30:27 -04:00
Guilherme Salgado 57e7e5f92f Fix TestPrivateTransaction to actually create private transactions (#144)
It now creates private transactions, but that means it now needs to run
constellation in a subprocess, so do that as well
2017-10-17 10:30:27 -04:00
Joel Burget 875c10b2d3 Squashed commits.
* Remove old note about testing with constellation.
* Review: forceParseRfc3339 -> mustParseRfc3339
* Add isQuorum parameter to SignTx.
* Re-enable TestLogReorgs.
* Fix `SignTx` calls in executables other than geth.
* Bring vm closer to public ethereum implementation.
* Restore all original Ethereum tests.
* Update for new event interface.
* Tweak core / EVM.
* Improve "TX failed" error message.
* Fix "err creating contract" bug.
* Don't log "invalid mix digest" in Quorum.
* Fix public / private bug.
  A private contract calling a method on a public contract would create a
  ghost of the private contract on public state due to a value transfer of
  0.
* Clearer naming in minter / work.commitTransactions.
* Remove unused log import.
* Remove unused `enableQuorumChecks` flag.
2017-10-17 10:30:21 -04:00
Péter Szilágyi 6c6c7b2af3
params: release Geth 1.7.0 - Megara 2017-09-14 13:55:42 +03:00
Péter Szilágyi 5c93462b5e Merge pull request #15147 from karalabe/enable-byzantium-ropsten
params: enable Byzantium on Ropsten/tests, fix failures
2017-09-14 11:28:54 +03:00
Péter Szilágyi 701d60c889
params: enable Byzantium on Ropsten/tests, fix failures 2017-09-14 10:59:05 +03:00
Martin Holst Swende 9be07de539 params: Updated finalized gascosts for ECMUL/MODEXP (#15135)
* params: Updated finalized gascosts for ECMUL/MODEXP

* core,tests: Updates pending new tests

* tests: Updated with new tests

* core: revert state transition bugfix

* tests: Add expected failures due to  #15119
2017-09-14 10:35:54 +03:00
Péter Szilágyi 885c13c2c9 Merge pull request #15146 from karalabe/byzantium-rebrand
consensus, core, params: rebrand Metro to Byzantium
2017-09-14 10:29:08 +03:00
Péter Szilágyi 5bbd7fb390
consensus, core, params: rebrand Metro to Byzantium 2017-09-14 10:10:46 +03:00
Péter Szilágyi 79b11121a7 Merge pull request #15141 from karalabe/rinkeby-infura-bootnode
params: add Infura bootnode to Rinkeby
2017-09-13 12:48:00 +03:00
Péter Szilágyi 72af509abe
params: add Infura bootnode to Rinkeby 2017-09-13 11:25:50 +03:00
Péter Szilágyi 382c9266e6 Merge pull request #15138 from karalabe/statesync-peer-drops
eth/downloader: track peer drops and deassign state sync tasks
2017-09-12 15:33:32 +03:00
Péter Szilágyi f46adfac28
eth/downloader: track peer drops and deassign state sync tasks 2017-09-12 15:13:14 +03:00
Péter Szilágyi 514b1587db Merge pull request #15137 from karalabe/puppeth-keywords
cmd/puppeth: reserve "yournode" as a non-allowed ethstats user
2017-09-12 11:50:53 +03:00
Péter Szilágyi 66a7ef57e6
cmd/puppeth: reserve "yournode" as a non-allowed ethstats user 2017-09-12 11:35:35 +03:00
Péter Szilágyi ecca2c3c1b Merge pull request #15129 from zsfelfoldi/cht1040
light: new CHTs for mainnet and ropsten
2017-09-12 10:59:01 +03:00
Zsolt Felfoldi 7a7f6a4f29 light: new CHTs for mainnet and ropsten 2017-09-11 23:36:16 +02:00
Péter Szilágyi c8e70186a6 Merge pull request #14973 from rjl493456442/fix_downloader
eth/downloader: exit loop when there is no more available task
2017-09-11 14:02:02 +03:00
Péter Szilágyi 794741b8b2 Merge pull request #15124 from fjl/debug-gcpercent
internal/debug: add debug_setGCPercent
2017-09-11 13:34:34 +03:00
Felix Lange 48705f8aea internal/debug: add debug_setGCPercent 2017-09-11 12:29:47 +02:00
Péter Szilágyi 10b3f97c9d core: only fire one chain head per batch (#15123)
* core: only fire one chain head per batch

* miner: announce chan events synchronously
2017-09-11 13:13:05 +03:00
Felix Lange 5596b664c4 internal/debug: add debug_freeOSMemory (#15122) 2017-09-11 09:33:18 +02:00
Felix Lange 10181b57a9 core, eth/downloader: commit block data using batches (#15115)
* ethdb: add Putter interface and Has method

* ethdb: improve docs and add IdealBatchSize

* ethdb: remove memory batch lock

Batches are not safe for concurrent use.

* core: use ethdb.Putter for Write* functions

This covers the easy cases.

* core/state: simplify StateSync

* trie: optimize local node check

* ethdb: add ValueSize to Batch

* core: optimize HasHeader check

This avoids one random database read get the block number. For many uses
of HasHeader, the expectation is that it's actually there. Using Has
avoids a load + decode of the value.

* core: write fast sync block data in batches

Collect writes into batches up to the ideal size instead of issuing many
small, concurrent writes.

* eth/downloader: commit larger state batches

Collect nodes into a batch up to the ideal size instead of committing
whenever a node is received.

* core: optimize HasBlock check

This avoids a random database read to get the number.

* core: use numberCache in HasHeader

numberCache has higher capacity, increasing the odds of finding the
header without a database lookup.

* core: write imported block data using a batch

Restore batch writes of state and add blocks, tx entries, receipts to
the same batch. The change also simplifies the miner.

This commit also removes posting of logs when a forked block is imported.

* core: fix DB write error handling

* ethdb: use RLock for Has

* core: fix HasBlock comment
2017-09-09 19:03:07 +03:00
holisticode ac193e36ce swarm/api/http: add error pages (#14967) 2017-09-08 20:29:09 +02:00
nkbai 5ba9225fe3 accounts/abi/bind: pass non-empty directory when calling goimports (#15070) 2017-09-07 23:34:45 +02:00
Martin Holst Swende fc87bc5f52 common: improve documentation of Hash.SetBytes (#15062)
Fixes #15004
2017-09-07 23:32:59 +02:00
Mark c1740e4540 core/types, miner: avoid tx sender miscaching (#14773) 2017-09-07 23:22:27 +02:00
Benoit Verkindt e3db1236de contracts/chequebook: fix race in test (#15058) 2017-09-07 23:14:47 +02:00
Fiisio 02b4d074f6 core/asm: use ContainsRune instead of IndexRune (#15098) 2017-09-07 23:11:48 +02:00
Fiisio 2dcb22afec swarm/fuse: use Equal instead of Compare (#15097) 2017-09-07 23:10:51 +02:00
Pawan Singh Pal 69c8be7c86 core: delete dao.go (#15113)
- dao.go is already present in consensus/misc
- core/dao.go is not used anywhere in the codebase
2017-09-07 23:08:06 +02:00
Péter Szilágyi 55e5926f34 Merge pull request #15103 from karalabe/disable-fastsync-postpivot
eth: disable fast sync after pivot is committed
2017-09-07 19:29:45 +03:00