7373 Commits

Author SHA1 Message Date
Felix Lange
8b90a49f3d [release/1.4.6] console: remove unnecessary JS evaluation in Welcome
(cherry picked from commit ad0e6e971e7d03c07842cc236fec09c73f93f465)
2016-06-06 16:21:56 +03:00
Felix Lange
c046126c87 [release/1.4.6] internal/jsre: ensure Stop can be called more than once
This makes "geth js file.js" terminate again.

(cherry picked from commit fdba0cb03cf4e5a87cdcc2ebc0f381ad32f5ad3e)
2016-06-06 16:21:53 +03:00
Péter Szilágyi
cd134178f7 [release/1.4.6] eth/downloader: ensure cancel channel is closed post sync
(cherry picked from commit 4496a44f68246bf128bb822c3f3a98f38adfdbdd)
2016-06-06 16:21:51 +03:00
Péter Szilágyi
4918c820c6 [release/1.4.6] eth/downloader, trie: pull head state concurrently with chain
(cherry picked from commit 4f1d92b3329572d75a20b9f9e1cccdf74aa7c79f)
2016-06-06 16:21:49 +03:00
Péter Szilágyi
5904d58a96 [release/1.4.6] cmd/geth, console: fix reviewer issues
(cherry picked from commit da729e5b386ca0fd32344dcc1fd63d14c0bb39ab)
2016-06-06 16:21:46 +03:00
Péter Szilágyi
7c90a2e42e [release/1.4.6] console, internal/jsre: colorize JavaScript exceptions too
(cherry picked from commit 14ae5708d61059d424c9be9822b85a3f4bb392b3)
2016-06-06 16:21:44 +03:00
Péter Szilágyi
c39de61a0a [release/1.4.6] cmd, console: split off the console into a reusable package
(cherry picked from commit ffaf58f0a98bd987bbe76e8669bb22c405dcd62a)
2016-06-06 16:21:41 +03:00
Péter Szilágyi
af53767e16 [release/1.4.6] core, core/state, trie: enterprise hand-tuned multi-level caching
(cherry picked from commit 748d1c171d74fbf6b6051fd629d3c2204dd930e3)
2016-06-06 16:21:39 +03:00
Péter Szilágyi
7632acf6b4 [release/1.4.6] core/state: return the starting nonce for non-existent accs (testnet)
(cherry picked from commit 8ee84584a407464511b453eebaa31854979aa593)
2016-06-06 16:21:37 +03:00
Felix Lange
9ccb70da7b [release/1.4.6] eth: enable bad block reports
We used to have reporting of bad blocks, but it was disabled
before the Frontier release. We need it back because users
are usually unable to provide the full RLP data of a bad
block when it occurs.

A shortcoming of this particular implementation is that the
origin peer is not tracked for blocks received during eth/63
sync. No origin peer info is still better than no report at
all though.

(cherry picked from commit ca18202eb9a94de1d4b51c1572fa74edfa2773bf)
2016-06-06 16:21:34 +03:00
Obulapathi N Challa
8fefee7132 [release/1.4.6] misc: fix spelling mistake
(cherry picked from commit f3769a97d5b4fa899f0bf673ff4c33a21d12ec38)
2016-06-06 16:21:31 +03:00
Rémy Roy
7a4073a758 [release/1.4.6] eth/api: fixed GetCompilers when there is no error creating Solc
(cherry picked from commit f86ea9aad5b14051d5d311591148387b2e6da725)
2016-06-06 16:21:27 +03:00
Rémy Roy
ab522d3bc7 [release/1.4.6] common/compiler: support relative path to solc
(cherry picked from commit 5eb60a6da23296f54081c92a6223935bfce81859)
2016-06-06 16:21:23 +03:00
Gianfranco Cecconi
c45c424073 [release/1.4.6] Just to make it clear how to build all executables
(cherry picked from commit 2e530f48892dd97fab362da7123319dc8c407444)
2016-06-06 16:21:11 +03:00
Fabio Berger
8d2775e3d7 [release/1.4.6] core: Simplify bloom9 tests with available convenience method TestBytes
(cherry picked from commit faf663133b7d784406a6bfc029404b2718abc66d)
2016-06-06 16:21:07 +03:00
Péter Szilágyi
170036289b [release/1.4.6] eth/downloader: fix reviewer comments
(cherry picked from commit 8906b2fe0934c67ebb1db5d4d77acdf1a7e988f0)
2016-06-06 16:21:04 +03:00
Péter Szilágyi
8ebbd9b7c7 [release/1.4.6] eth/downloader: stream partial skeleton filling to processor
(cherry picked from commit e86619e75d1bd1209818ab4df2fac52e3c43b5e1)
2016-06-06 16:21:01 +03:00
Péter Szilágyi
7df36e5ec1 [release/1.4.6] eth/downloader: implement concurrent header downloads
(cherry picked from commit b40dc8a1daf4bd1f293cf322274b470ad91517fb)
2016-06-06 16:20:58 +03:00
Felix Lange
5fb29fd45f [release/1.4.6] node, p2p: move network config out of Server
This silences a go vet message about copying p2p.Server in package node.

(cherry picked from commit 542b839ec74ff0ce94ab0d34e25531f5819d95d1)
2016-06-06 16:20:56 +03:00
Changhoon Lee
90beb6112e [release/1.4.6] README: fix typos
README: fix typos
(cherry picked from commit 2348f8e2a8f2203e8ce4058cb23135579556be53)
2016-06-06 16:20:53 +03:00
Péter Szilágyi
efa2b3da7e [release/1.4.6] cmd/geth: use text/templates in the tester, not html
(cherry picked from commit 284f1d6beb589d240a18e9b63560266041fa9798)
2016-06-06 16:20:51 +03:00
Péter Szilágyi
e3b3c298df [release/1.4.6] cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix miner
(cherry picked from commit bc6fdad786706019fc5aeb9605f1d23b3c5b7522)
2016-06-06 16:20:48 +03:00
Péter Szilágyi
3752507a11 [release/1.4.6] travis: run CI builds against multiple Go versions
(cherry picked from commit bc3b406bffc9c6f38420f1504cb7eba0b92cad3b)
2016-06-06 16:20:18 +03:00
Péter Szilágyi
27df30f30f VERSION, cmd/geth: bumped version 1.4.5 2016-05-24 11:26:21 +03:00
Péter Szilágyi
68ae6b52e9 [release 1.4.5] accounts/abi: fix abi test for go vet...
(cherry picked from commit 251b3c6406aee5876c87016bd088c8cefe7c08f6)
2016-05-24 09:45:40 +02:00
Péter Szilágyi
1776c717bf [release 1.4.5] accounts/abi/bind, eth: rely on getCode for sanity checks, not estimate and call
(cherry picked from commit 1580ec180414bce1e37acc614bc2445f778efb75)
2016-05-24 09:33:15 +02:00
Jeffrey Wilcke
0f6e3e873a [release 1.4.5] eth: fixed regression in eth_signTransaction fixes #2578
Sign transaction returned the unsigned transaction rather than the
signed one.

(cherry picked from commit 4b1a7d3868e796ee70f62985379e59f933a2aca0)
2016-05-24 09:33:10 +02:00
Bas van Kervel
7a7a5acc9f [release 1.4.5] eth/filter: bugfix which can cause a nil pointer crash when parsing filter arguments
(cherry picked from commit 67cd4ee8d26e9ebe2714faaca856e73512236834)
2016-05-24 09:33:05 +02:00
Felix Lange
66d74dfb75 [release 1.4.5] cmd/geth: fix console history exclusion
Calls to 'personal' API should be excluded from console history because
they can be called with an account passphrase as argument. The check for
such calls was inverted and didn't work.

(cherry picked from commit 86da6feb40fd366c75236d87fa306576c51ed2a8)

Conflicts:
	cmd/geth/js.go
2016-05-24 09:32:55 +02:00
Bas van Kervel
b950a2977c [release/1.4.5] eth: add new RPC method (personal.) SignAndSendTransaction
(cherry picked from commit 64a6c2c1b6c81fddccc7d3d728b7a05c5814124b)

Conflicts:
	cmd/geth/js.go
	internal/web3ext/web3ext.go
2016-05-24 09:32:45 +02:00
Péter Szilágyi
4c6953606e [release/1.4.4] eth: skip transaction handling during fast sync
(cherry picked from commit d87f7a1e817cbecbb62c012ed3811ceba933ae3a)
2016-05-17 14:59:12 +02:00
Jeffrey Wilcke
4b11f207cb VERSION, cmd/geth: bumped version 1.4.4 2016-05-12 21:10:38 +02:00
Jeffrey Wilcke
7e5c49cafa [release/1.4.4] event: fixed subscribtions to stopped event mux
This fixes an issue where the following would lead to a panic due to a
channel being closed twice:

* Start mux
* Stop mux
* Sub to mux
* Unsub

This is fixed by setting the subscriptions status to closed resulting in
the Unsubscribe to ignore the request when called.

(cherry picked from commit 7c1f74713e273d1e4f1982466eb6fd96e55e8c4d)
2016-05-12 20:53:31 +02:00
Péter Szilágyi
efcfa2209b [release/1.4.4] eth/downloader: bound fork ancestry and allow heavy short forks 2016-05-12 17:32:06 +02:00
Jeffrey Wilcke
aa18aad7ad [release/1.4.4] core: fixed pointer assignment
This fixes an issue where it's theoretical possible to cause a consensus
failure when hitting the lower end of the difficulty, though pratically
impossible it's worth a fix.
2016-05-12 17:31:57 +02:00
Péter Szilágyi
594328c112 [release/1.4.4] accounts/abi/bind: fix multi-value anonymous unmarshalling
(cherry picked from commit cc21706c5007e8f400df536591948aee69e82d2f)
2016-05-12 17:19:29 +02:00
Jeffrey Wilcke
2e6b9c141b [release/1.4.4] accounts/abi: fixed unpacking in to already slice interfaces
Previously it was assumed that wheneven type `[]interface{}` was given
that the interface was empty. The abigen rightfully assumed that
interface slices which already have pre-allocated variable sets to be
assigned.

This PR fixes that by checking that the given `[]interface{}` is larger
than zero and assigns each value using the generic `set` function (this
function has also been moved to abi/reflect.go) and checks whether the
assignment was possible.

The generic assignment function `set` now also deals with pointers
(useful for interface slice mentioned above) by dereferencing the
pointer until it finds a setable type.

(cherry picked from commit 91a7a4a7867718ccb6c9620120a1be5680ad0abd)
2016-05-12 17:19:29 +02:00
Bas van Kervel
b38cea6654 [release/1.4.4] rpc: HTTP origin case insensitive
(cherry picked from commit 54790977904cd51671ab57d926d83175dbc2ca55)
2016-05-12 17:19:25 +02:00
Jeffrey Wilcke
f213a9d8e8 VERSION, cmd/geth: bumped version 1.4.3 v1.4.3 2016-05-10 13:46:03 +02:00
Jeffrey Wilcke
6826b2040f [release/1.4.3] miner: fixed pending state by not shutting down update loop
(cherry picked from commit a824c3f02f74eb11b4382abbb92aa8babc5d685c)
2016-05-10 13:46:03 +02:00
Jeffrey Wilcke
2a3657d8d9 VERSION, cmd/geth: bumped version 1.4.2 2016-05-10 13:46:02 +02:00
Jeffrey Wilcke
290e851f57 VERSION, cmd/geth: bumped version 1.4.2 v1.4.2 2016-05-09 22:06:27 +02:00
Jeffrey Wilcke
8f96d66241 Merge branch 'develop' into release/1.4 2016-05-09 22:04:40 +02:00
Péter Szilágyi
5782164a35 Merge pull request #2529 from fjl/fdlimit-bsd
cmd/utils: fix build on *BSD
2016-05-09 16:39:34 +03:00
Péter Szilágyi
27f657478f Merge pull request #2524 from fjl/windows-ci-scripts
build: add CI scripts for windows
2016-05-09 15:59:49 +03:00
Péter Szilágyi
756b62988c Merge pull request #2523 from fjl/shutdown
core, eth, miner: improve shutdown synchronisation
2016-05-09 15:59:41 +03:00
Felix Lange
f61e203c10 cmd/utils: fix build on *BSD 2016-05-09 13:13:44 +02:00
Felix Lange
56ed6152a1 core, eth, miner: improve shutdown synchronisation
Shutting down geth prints hundreds of annoying error messages in some
cases. The errors appear because the Stop method of eth.ProtocolManager,
miner.Miner and core.TxPool is asynchronous. Left over peer sessions
generate events which are processed after Stop even though the database
has already been closed.

The fix is to make Stop synchronous using sync.WaitGroup.

For eth.ProtocolManager, in order to make use of WaitGroup safe, we need
a way to stop new peer sessions from being added while waiting on the
WaitGroup. The eth protocol Run function now selects on a signaling
channel and adds to the WaitGroup only if ProtocolManager is not
shutting down.

For miner.worker and core.TxPool the number of goroutines is static,
WaitGroup can be used in the usual way without additional
synchronisation.
2016-05-09 13:03:08 +02:00
Péter Szilágyi
dc7f202ecd Merge pull request #2528 from karalabe/fix-web3-eth_syncing
jsre: hotfix web3 for the console eth.syncing formatting
2016-05-09 12:46:48 +03:00
Péter Szilágyi
1d42061e2c jsre: hotfix web3 for the console eth.syncing formatting 2016-05-09 11:59:59 +03:00