Péter Szilágyi
a07539fb88
Merge pull request #3671 from karalabe/1.5.9-stable
...
params: 1.5.9 stable
2017-02-13 18:54:59 +02:00
Péter Szilágyi
6988e5f074
Merge pull request #3670 from karalabe/docker-usb-fix
...
Dockerfile: support building USB on Alpine, ignore temp files
2017-02-13 18:47:27 +02:00
Péter Szilágyi
aba016da72
params: 1.5.9 stable
2017-02-13 18:38:21 +02:00
Péter Szilágyi
09aef5c0ae
Dockerfile: support building USB on Alpine, ignore temp files
2017-02-13 18:31:09 +02:00
Péter Szilágyi
9b161187ec
Merge pull request #3649 from ethersphere/swarm-sigterm-fix
...
cmd/swarm: handle SIGTERM unix signal for clean exit
2017-02-13 18:22:15 +02:00
zelig
8883f36fe3
cmd/swarm: handle SIGTERM unix signal for clean exit
2017-02-13 22:15:14 +06:30
Péter Szilágyi
0850f68fd1
Merge pull request #3668 from obscuren/revert-gas64
...
Revert "params: core, core/vm, miner: 64bit gas instructions (#3514 )"
2017-02-13 17:13:40 +02:00
Jeffrey Wilcke
57f4e90257
Revert "params: core, core/vm, miner: 64bit gas instructions ( #3514 )"
...
This reverts commit 8b57c49490 .
2017-02-13 15:15:12 +01:00
Péter Szilágyi
f8f428cc18
Merge pull request #3592 from karalabe/hw-wallets
...
accounts: initial support for Ledger hardware wallets
2017-02-13 15:03:16 +02:00
Viktor Trón
e23e86921b
swarm/network: fix chunk integrity checks ( #3665 )
...
* swarm/network: integrity on incoming known chunks
* swarm/network: fix integrity check for incoming chunks
* swarm/storage: imrpoved integrity checking on chunks
* dbstore panics on corrupt chunk entry an prompts user to run cleandb
* memstore adds logging for garbage collection
* dbstore refactor item delete. correct partial deletes in Get
* cmd/swarm: added cleandb subcommand
2017-02-13 13:20:50 +01:00
gluk256
65ed6a9def
whisper: add tests for mailserver ( #3631 )
2017-02-13 13:15:20 +01:00
Péter Szilágyi
e99c788155
accounts: ledger and HD review fixes
...
- Handle a data race where a Ledger drops between list and open
- Prolong Ledger tx confirmation window to 30 days from 1 minute
- Simplify Ledger chainid-signature calculation and validation
- Simplify Ledger USB APDU request chunking algorithm
- Silence keystore account cache notifications for manual actions
- Only enable self derivations if wallet open succeeds
2017-02-13 14:00:12 +02:00
Péter Szilágyi
c7022c1a0c
accounts/usbwallet: detect and report in Ledger is in browser mode
2017-02-13 14:00:11 +02:00
Péter Szilágyi
26cd41f0c7
accounts/usbwallet: make wallet responsive while Ledger is busy
2017-02-13 14:00:10 +02:00
Péter Szilágyi
fb19846855
accounts/usbwallet: Ledger teardown on health-check failure
2017-02-13 14:00:10 +02:00
Péter Szilágyi
205ea95802
accounts, cmd, internal, node: implement HD wallet self-derivation
2017-02-13 14:00:09 +02:00
Péter Szilágyi
c5215fdd48
accounts, cmd, internal, mobile, node: canonical account URLs
2017-02-13 14:00:08 +02:00
Péter Szilágyi
fad5eb0a87
accounts, cmd, eth, internal, miner, node: wallets and HD APIs
2017-02-13 14:00:07 +02:00
Péter Szilágyi
b3c0e9d3cc
accounts/usbwallet: two phase Ledger refreshes to avoid Windows bug
2017-02-13 14:00:07 +02:00
Péter Szilágyi
470b79385b
accounts/usbwallet: support Ledger app version <1.0.2
2017-02-13 14:00:06 +02:00
Péter Szilágyi
1ecf99bd0f
accounts/usbwallet: skip support on iOS altogether
2017-02-13 14:00:05 +02:00
Péter Szilágyi
e0fb4d1da9
build: work around CGO linker bug on pre-1.8 Go
2017-02-13 14:00:04 +02:00
Péter Szilágyi
ac2a0e615b
accounts/usbwallet: initial support for Ledger wallets
2017-02-13 14:00:04 +02:00
Péter Szilágyi
52bd4e29ff
vendor: pull in support for USB devices via libusb/gousb
2017-02-13 14:00:03 +02:00
Péter Szilágyi
833e4d1319
accounts, cmd, eth, internal, mobile, node: split account backends
2017-02-13 14:00:02 +02:00
Martin Holst Swende
564b60520c
core: ignore 0x prefix for code in JSON genesis blocks ( #3656 )
2017-02-13 03:36:50 +01:00
Zahoor Mohamed
085987ff2c
cmd/swarm: manifest manipulation commands ( #3645 )
2017-02-13 03:33:05 +01:00
Péter Szilágyi
aaf9cfd18c
Merge pull request #3662 from karalabe/travis-linux-android
...
travis: split Android off OSX, use native image
2017-02-12 19:25:32 +02:00
Péter Szilágyi
7ff686d6ec
travis: split Android off OSX, use native image
2017-02-10 19:24:37 +02:00
Péter Szilágyi
0cc9409fda
Merge pull request #3648 from bas-vk/abigen
...
cmd/abigen: parse contract name as abi identifier
2017-02-10 12:11:43 +02:00
Maksim
6dd27e7cff
swarm/storage: release chunk storage after stop swarm ( #3651 )
...
closes #3650
2017-02-08 18:01:12 +01:00
Bas van Kervel
d0eeb3ebdc
cmd/abigen: parse contract name as abi identifier
2017-02-06 18:16:56 +01:00
Péter Szilágyi
fa99986143
Merge pull request #3641 from karalabe/events-init-once
...
event: use sync.Once for init for faster/cleaner locking
2017-02-03 14:34:12 +02:00
Diego Siqueira
6ea8eba8ce
accounts/abi, internal/jsre/deps: gofmt -w -s ( #3636 )
...
Signed-off-by: DiSiqueira <dieg0@live.com >
2017-02-03 13:32:04 +01:00
Péter Szilágyi
9b5c7153c9
event: use sync.Once for init for faster/cleaner locking
2017-02-03 14:04:57 +02:00
Péter Szilágyi
d52b0c32a0
Merge pull request #3635 from holiman/hive_fixes
...
core/genesis: add support for setting nonce in 'alloc'
2017-02-03 14:00:18 +02:00
Péter Szilágyi
7734ead520
Merge pull request #3605 from fjl/event-feed
...
event: add new Subscription type and related utilities
2017-02-03 13:56:00 +02:00
Felix Lange
1bed9b3fea
event: address review issues (multiple commits)
...
event: address Feed review issues
event: clarify role of NewSubscription function
event: more Feed review fixes
* take sendLock after dropping f.mu
* add constant for number of special cases
event: fix subscribing/unsubscribing while Send is blocked
2017-02-03 13:37:49 +02:00
Jeffrey Wilcke
8b57c49490
params: core, core/vm, miner: 64bit gas instructions ( #3514 )
...
Reworked the EVM gas instructions to use 64bit integers rather than
arbitrary size big ints. All gas operations, be it additions,
multiplications or divisions, are checked and guarded against 64 bit
integer overflows.
In additon, most of the protocol paramaters in the params package have
been converted to uint64 and are now constants rather than variables.
* common/math: added overflow check ops
* core: vmenv, env renamed to evm
* eth, internal/ethapi, les: unmetered eth_call and cancel methods
* core/vm: implemented big.Int pool for evm instructions
* core/vm: unexported intPool methods & verification methods
* core/vm: added memoryGasCost overflow check and test
2017-02-02 15:25:42 +01:00
Brian Schroeder
296450451b
state: take write lock in GetNonce ( #3625 )
...
We must take a write lock here because `GetNonce` calls
`StateDB.GetStateObject`, which mutates the DB's live set.
2017-02-01 10:55:46 +01:00
Felix Lange
4f5f90222f
params, VERSION: v1.5.9-unstable
2017-02-01 02:14:54 +01:00
Felix Lange
f58fb32283
params: v1.5.8-stable
2017-02-01 02:14:04 +01:00
Felix Lange
9c45b4462c
Merge pull request #3607 from zsfelfoldi/light-fix2
...
les: fix private net issues, enable adding peers manually again
2017-02-01 02:03:43 +01:00
gluk256
690f6ea1d7
cmd/wnode, whisper: add whisper CLI tool and mail server ( #3580 )
2017-01-31 11:16:20 +01:00
Péter Szilágyi
1c140f7382
Merge pull request #3615 from nolash/bzzpathfix_real5
...
cmd/swarm, swarm/api: bzzr improve + networkid prio
2017-01-30 16:36:30 +02:00
Péter Szilágyi
e5a93bf99a
swarm/api/http: add missing copyright header
2017-01-30 15:21:46 +02:00
Péter Szilágyi
f3c368ca73
Merge pull request #3624 from kaneshin/patch-01
...
cmd/geth, cmd/swarm: Fix to close file handler appropriately
2017-01-30 12:24:41 +02:00
Péter Szilágyi
b8823a8b34
Merge pull request #3623 from kaneshin/patch-1
...
build: Fix tiny typo
2017-01-29 20:46:55 +02:00
Shintaro Kaneko
355a42f36d
cmd/geth, cmd/swarm: Fix to close file handler appropriately
2017-01-30 01:10:19 +09:00
Shintaro Kaneko
658bcbcbdc
build: Fix tiny typo
2017-01-30 01:09:00 +09:00
nolash
7669c5b5ec
cmd/swarm, swarm/api: bzzr improve + networkid prio
...
fixes #3444
fixes #3494
networkid override
Added comments to explain why test against 0 appears twice
* Command line overrides saved config, saved config overrides system default
---
fixes #3476
bzzr get with path
Finally a hopefully clean commit for this PR
Added check for empty path to avoid SIGSEGV in path parser and resolver
Added requested tests for empty path and non-existing manifest.
However signature for StartHTTPServer had changed.
Now it's hacked as so:
StartHttpServer(api.API, &Server{Addr: "127.0.0.1:8504", CorsString: ""})
* Parse url before resolve when path and ENS is supplied, example
* swarm/api/http proxy server test for retrieval of subpath through get
* Removed nil entry assignment on subtrie leaf in recursive key retrieval
* Cleaned up path-or-no-path condition in proxy server get handler
* swarm: processed with gofmt refers to lash/go-ethereum@90daa7a
* swarm: Added public access method Parse alias to parse
* swarm: processed with gofmt References nolash/go-ethereum@2ec3fd7
* Rename parse to Parse, removed alias
2017-01-27 08:18:13 +01:00
Zsolt Felfoldi
a390ca5f30
les, cmd/util: disable topic discovery with --nodiscover
2017-01-27 02:52:45 +01:00
bas-vk
c46c41eae3
core/types: add unittest for tx json serialization ( #3609 )
2017-01-26 21:16:24 +01:00
Vivek Anand
82aa5b1de6
core: fix a small typo in blockchain.go ( #3611 )
2017-01-26 16:54:49 +02:00
Zsolt Felfoldi
12379c697a
les: remove delayed les server starting
2017-01-26 04:23:53 +01:00
Zsolt Felfoldi
f5348e17f8
les: add unknown peers to server pool instead of rejecting them
2017-01-26 04:23:49 +01:00
Felix Lange
a2b4abd89a
rpc: send nil on subscription Err channel when Client is closed
...
This change makes client subscriptions compatible with the new
Subscription semantics introduced in the previous commit.
2017-01-25 18:44:21 +01:00
Felix Lange
6d5e100d0d
event: add new Subscription type and related utilities
...
This commit introduces a new Subscription type, which is synonymous with
ethereum.Subscription. It also adds a couple of utilities that make
working with Subscriptions easier. The mot complex utility is Feed, a
synchronisation device that implements broadcast subscriptions. Feed is
slightly faster than TypeMux and will replace uses of TypeMux across the
go-ethereum codebase in the future.
2017-01-25 18:44:20 +01:00
Felix Lange
1886d03faa
console, internal/web3ext: remove bzz and ens extensions ( #3602 )
...
web3.js includes bzz methods and throws an error when the extension
module is reregistered. The ENS RPC API is deprecated and not exposed by
anything.
2017-01-25 16:29:40 +01:00
Felix Lange
9b62facdd4
event: deprecate TypeMux and related types
...
The Subscription type is gone, all uses are replaced by
*TypeMuxSubscription. This change is prep-work for the
introduction of the new Subscription type in a later commit.
gorename -from '"github.com/ethereum/go-ethereum/event"::Event' -to TypeMuxEvent
gorename -from '"github.com/ethereum/go-ethereum/event"::muxsub' -to TypeMuxSubscription
gofmt -w -r 'Subscription -> *TypeMuxSubscription' ./event/*.go
find . -name '*.go' -and -not -regex '\./vendor/.*' \| xargs gofmt -w -r 'event.Subscription -> *event.TypeMuxSubscription'
2017-01-25 16:25:57 +01:00
Martin Holst Swende
da92f5b2d6
core/genesis: add support for setting nonce in 'alloc'
...
This is to be able to set `pre`-state when performing blockchain tests through Hive, we need to be able to set the nonce.
2017-01-24 20:42:47 +01:00
Felix Lange
f1069a30b9
eth/downloader: improve deliverNodeData ( #3588 )
...
Commit d3b751e accidentally deleted a crucial 'return' statement,
leading to a crash in case of an issue with node data. This change
improves the fix in PR #3591 by removing the lock entirely.
2017-01-24 13:20:37 +01:00
Péter Szilágyi
2718b42828
Merge pull request #3599 from karalabe/docker-alpine-cacerts
...
containers/docker: update base images, add CA certs, build internally on Ubuntu
2017-01-24 13:46:56 +02:00
Felix Lange
fc52f2c007
core/types: make Transaction zero value printable ( #3595 )
2017-01-23 18:51:02 +01:00
Péter Szilágyi
0b9070fe01
containers/docker: update ubuntu images to build, not pull
2017-01-23 12:12:38 +02:00
Péter Szilágyi
c04598f2b0
containers/docker: update to alpine 3.5, add CA certificates
2017-01-23 11:46:15 +02:00
Felix Lange
96778a1c21
crypto/secp256k1: sign with deterministic K (rfc6979) ( #3561 )
2017-01-22 23:28:47 +01:00
Martin Holst Swende
935d891e9d
cmd/evm: added debug flag (back) ( #3554 )
...
* evm: added debug flag (back)
* cmd/evm: gofmt
2017-01-22 22:14:09 +01:00
Péter Szilágyi
682875adff
accounts/abi/bind, internal/ethapi: binary search gas estimation ( #3587 )
...
Gas estimation currently mostly works, but can underestimate for more funky
refunds. This is because various ops (e.g. CALL) need more gas to run than they
actually consume (e.g. 2300 stipend that is refunded if not used). With more
intricate contract interplays, it becomes almost impossible to return a proper
value to the user.
This commit swaps out the simplistic gas estimation to a binary search approach,
honing in on the correct gas use. This does mean that gas estimation needs to
rerun the transaction log(max-price) times to measure whether it fails or not,
but it's a price paid by the transaction issuer, and it should be worth it to
support proper estimates.
2017-01-20 23:39:16 +01:00
bas-vk
0126d01435
types: bugfix invalid V derivation on tx json unmarshal ( #3594 )
2017-01-20 23:32:16 +01:00
Péter Szilágyi
946db8ba65
internal/guide: initial test suite to ensure guide snippets run ok ( #3582 )
2017-01-20 11:50:21 +01:00
Péter Szilágyi
7814a8e131
travis: Install Android NDK explicitly, removed from gomobile ( #3593 )
...
The Android NDK was recently removed from gomobile, leading to our Android
builds failing. Starting from https://go-review.googlesource.com/#/c/35173/ ,
gomobile requires a locally installed NDK. This PR ensures that travis installs
that too before running the build steps.
2017-01-20 10:33:58 +01:00
Péter Szilágyi
ebc3d232f4
eth/downloader: fix mutex regression causing panics on fail ( #3591 )
2017-01-20 01:12:14 +01:00
Péter Szilágyi
f087c66f95
Merge pull request #3584 from obscuren/dead-code
...
core: removal of dead-code
2017-01-18 13:36:21 +02:00
Jeffrey Wilcke
508fdc3496
core: removal of dead-code
...
Removal of dead code that appeard as if we had a consensus issue. This
however is not the case as the proper error catching happens in the vm
package instead.
2017-01-17 21:50:08 +01:00
Péter Szilágyi
d63752ef4d
Merge pull request #3579 from bas-vk/natspec
...
cmd,eth,les,internal: remove natspec support
2017-01-17 14:38:57 +02:00
Martin Holst Swende
6fb76443b3
core/blockchain: Made logging of reorgs more structured ( #3573 )
...
* core: Made logging of reorgs more structured, also always log if reorg is > 63 blocks long
* core/blockchain: go fmt
* core/blockchain: Minor fixes to the reorg reporting
2017-01-17 14:10:26 +02:00
Péter Szilágyi
2eefed84c9
Merge pull request #3581 from karalabe/accounts-polish
...
accounts, mobile: make account manager API a bit more uniform
2017-01-17 14:09:29 +02:00
Péter Szilágyi
230530f5ea
accounts, mobile: make account manager API a bit more uniform
2017-01-17 13:25:36 +02:00
Nick Johnson
17d92233d9
cmd/geth, core: add support for recording SHA3 preimages ( #3543 )
2017-01-17 12:19:50 +01:00
Bas van Kervel
54a65e6d87
cmd,eth,les,internal: remove natspec support
2017-01-17 12:13:50 +01:00
Felix Lange
26d385c18b
params, VERSION: 1.5.8 unstable
2017-01-16 11:12:50 +01:00
Felix Lange
da2a22c384
params: stable 1.5.7
2017-01-16 10:57:02 +01:00
Felföldi Zsolt
0fa9a8929c
les: fixed transaction sending deadlock ( #3568 )
2017-01-16 10:51:29 +01:00
Péter Szilágyi
2a1a531ba3
Merge pull request #3570 from fjl/hexutil-zero-fix
...
common/hexutil: fix EncodeBig, Big.MarshalJSON
2017-01-16 11:49:17 +02:00
Felix Lange
51f6b6d33f
common/hexutil: fix EncodeBig, Big.MarshalJSON
...
The code was too clever and failed to include zeros on a big.Word
boundary.
2017-01-16 10:32:40 +01:00
Péter Szilágyi
b5a100b859
Merge pull request #3560 from karalabe/ci-misspell
...
travis, appveyor, build: add source spell checking
2017-01-13 12:16:22 +02:00
Péter Szilágyi
54fcab20e3
appveyor, build: fix review requests
2017-01-13 12:04:55 +02:00
Péter Szilágyi
a2bc90d1d7
build: spellcheck individual packages (Windows path limits)
2017-01-13 11:22:24 +02:00
Péter Szilágyi
c01f8c3d3c
accounts/abi: fix comment spelling error
2017-01-13 11:14:47 +02:00
Péter Szilágyi
e4181a7f1b
travis, appveyor, build: add source spell checking
2017-01-13 11:14:13 +02:00
Felix Lange
01f6f2d741
common/hexutil: allow empty strings when decoding JSON ( #3559 )
2017-01-13 09:45:40 +01:00
Felix Lange
c5df37c111
eth: accept leading zeros for nonce parameter of submitWork ( #3558 )
2017-01-13 00:37:23 +01:00
Felix Lange
e0ceeab0d1
crypto/secp256k1: update to github.com/bitcoin-core/secp256k1 @ 9d560f9 ( #3544 )
...
- Use defined constants instead of hard-coding their integer value.
- Allocate secp256k1 structs on the C stack instead of converting []byte
- Remove dead code
2017-01-12 21:29:11 +01:00
Péter Szilágyi
93077c98e4
internal: update web3.js to 0.18.1, embed deps with go-bindata ( #3545 )
2017-01-12 21:28:35 +01:00
Péter Szilágyi
3dab303826
Merge pull request #3555 from obscuren/unskip-test
...
tests: unskip test
2017-01-12 12:08:56 +02:00
Jeffrey Wilcke
3160fd24ba
tests: unskip test
2017-01-12 10:32:21 +01:00
Péter Szilágyi
ce7822c130
Merge pull request #3553 from bas-vk/rm-olympic-support
...
core: remove support for Olympic network
2017-01-12 11:26:00 +02:00
Bas van Kervel
745a3adebd
core: remove support for Olympic network
2017-01-12 09:50:54 +01:00
Péter Szilágyi
218ec6c085
Merge pull request #3551 from fjl/core-import-log-align
...
core: improve import log alignment
2017-01-11 14:53:54 +02:00
Nick Johnson
d30d7800e0
ethdb: Implement interface for prefixed operations to the DB ( #3536 )
2017-01-11 13:26:09 +01:00
Felix Lange
8820d97039
internal/ethapi: fix duration parameter of personal_unlockAccount ( #3542 )
2017-01-11 13:20:24 +01:00
Péter Szilágyi
b52fde7cf7
Merge pull request #3546 from fjl/deps-update
...
vendor: update dependencies
2017-01-11 12:14:08 +02:00
Péter Szilágyi
2b4d0b6ff9
Merge pull request #3548 from fjl/geth-fix-bootnodes
...
cmd/utils: fix comma-separated --bootnodes
2017-01-11 10:59:14 +02:00
Felix Lange
21f1370d2a
core: improve import log alignment
2017-01-10 23:14:08 +01:00
Felix Lange
d78f9b834a
vendor: update all dependencies except Azure SDK
...
The Azure SDK doesn't support Go 1.5 anymore. We can't upgrade it until
Go 1.8 comes out.
2017-01-10 22:33:24 +01:00
Felix Lange
445deb7470
cmd/utils: fix comma-separated --bootnodes
2017-01-10 21:13:43 +01:00
Péter Szilágyi
02b67558e8
Merge pull request #3535 from fjl/all-ineffassign
...
all: fix ineffectual assignments
2017-01-09 23:53:17 +02:00
Péter Szilágyi
91c8f87fb1
Merge pull request #3538 from karalabe/cycle-1.5.7
...
params, VERSION: start 1.5.7 release cycle
2017-01-09 17:47:35 +02:00
Péter Szilágyi
d056b7fa52
params, VERSION: start 1.5.7 release cycle
2017-01-09 17:45:49 +02:00
Péter Szilágyi
2a609af518
Merge pull request #3537 from karalabe/release-1.5.6
...
params: stable version 1.5.6
2017-01-09 17:39:27 +02:00
Péter Szilágyi
1d5d6616ae
params: stable version 1.5.6
2017-01-09 17:30:35 +02:00
Felix Lange
b9b3efb09f
all: fix ineffectual assignments and remove uses of crypto.Sha3
...
go get github.com/gordonklaus/ineffassign
ineffassign .
2017-01-09 16:24:42 +01:00
Felix Lange
0f34d506b5
generators: delete dead code
...
We don't use this anymore.
2017-01-09 16:12:54 +01:00
Felix Lange
5eccc122e8
build, node: fix go vet nits
2017-01-09 16:12:54 +01:00
Péter Szilágyi
681b51aac4
Merge pull request #3519 from zsfelfoldi/light-topic5
...
les: fixed selectPeer deadlock, improved request distribution
2017-01-09 16:58:23 +02:00
Péter Szilágyi
4268cb8efe
Merge pull request #3534 from bas-vk/writemipmaprace
...
core: fix race condition in WriteMipmapBloom
2017-01-09 16:58:05 +02:00
Viktor Trón
3f1a72908c
cmd/swarm: uploader uses HTTP PUT for directories ( #3488 )
2017-01-09 15:19:56 +01:00
Bas van Kervel
2fed476ce1
core: fix race condition in WriteMipmapBloom
2017-01-09 15:35:58 +02:00
Péter Szilágyi
6cb39dd3da
Merge pull request #3529 from fjl/console-error-fix
...
console: fix error message in faux JSON-RPC responses
2017-01-09 13:46:15 +02:00
Péter Szilágyi
88cc1ca55a
Merge pull request #3533 from karalabe/modum-io-develop-2
...
accounts/abi: support custom int slice types
2017-01-09 11:49:17 +02:00
Thomas Bocek
1bd9769111
accounts/abi: fixed broken types slice testcases
...
Check for slice in type as well and adapted test case as arrays
also store its types.
2017-01-09 11:36:33 +02:00
Jeffrey Wilcke
47372813ef
accounts/abi: fixed comments
2017-01-09 11:36:33 +02:00
tbocek
fc213c873d
accounts/abi: added testcase to unpack []uint32
2017-01-09 11:36:32 +02:00
Thomas Bocek
972f0bd3db
accounts/abi: support custom int slice types
...
On solidity contract I have "uint32 []" type, when abigen creates Go
bindings - they are also "[]uint32" type on Go side. Even though it
looks like it should work - the actual type of the data coming from
the chain is of type " []*big.Int".
When executing contract function from Go side - getting unmarshal error:
abi: cannot unmarshal []*big.Int in to []uint32
The fix is to create array with the correct type
This fixed the issue reported in: https://github.com/ethereum/go-ethereum/issues/2802
2017-01-09 11:36:31 +02:00
Victor Farazdagi
808310a569
node: fix pointer dereference issue in StartRPC ( #3532 )
2017-01-08 15:55:37 +01:00
Valentin Wüstholz
0a5450fe04
cmd/disasm: fix array-out-of-bounds error ( #3491 )
2017-01-08 01:18:22 +01:00
Felix Lange
9bab0b8a24
console: fix error message in faux JSON-RPC responses
...
The message was used as both key and value in the error object.
This only affected unusual errors with no error code.
2017-01-08 00:55:48 +01:00
Péter Szilágyi
17182732f5
Merge pull request #3526 from karalabe/misspell
...
all: fix spelling errors
2017-01-06 20:03:44 +02:00
Péter Szilágyi
18c77744ff
all: fix spelling errors
2017-01-06 19:44:35 +02:00
Péter Szilágyi
ac93a6ff6c
Merge pull request #3525 from fjl/all-gosimple-cleanup
...
all: clean up lint issues, remove more dead code
2017-01-06 19:30:44 +02:00
Felix Lange
13e3b2f433
logger, pow/dagger, pow/ezp: delete dead code
2017-01-06 18:18:07 +01:00
Felix Lange
f2da6581ba
all: fix issues reported by honnef.co/go/simple/cmd/gosimple
2017-01-06 18:18:07 +01:00
Péter Szilágyi
444fc892b0
Merge pull request #3524 from karalabe/mobile-signwith-swift-fixup
...
mobile: rename passphrase signing method to avoid Swift rewrite
2017-01-06 18:04:19 +02:00
Péter Szilágyi
b56aee3697
mobile: rename passphrase signing method to avoid Swift rewrite
2017-01-06 17:47:15 +02:00
Felix Lange
35a7dcb162
all: gofmt -w -s
2017-01-06 15:52:03 +01:00
Felix Lange
e0fde02290
common/compiler: remove workaround for solc 0.3.5 stdin bug ( #3522 )
...
The crash when compiling stdin was fixed in solc 0.3.6 (released
2016-08-10). While here, simplify the test so it runs with any solc
version.
Fixes #3484 . The byte code was different for each run because recent
solc embeds the swarm hash of contract metadata into the code. When
compiling from stdin the name in the metadata is constant.
2017-01-06 15:39:35 +01:00
Péter Szilágyi
59b8245bbc
Merge pull request #3516 from fjl/types-drop-sign-ecdsa
...
core/types: remove redundant SignECDSA wrappers, rename to SignTx
2017-01-06 15:55:55 +02:00
Péter Szilágyi
8f9daaa3ba
Merge pull request #3518 from fjl/ethclient-dependency-cleanup
...
core/types: dependency cleanup
2017-01-06 15:42:03 +02:00
Felix Lange
d3b751e4d9
trie: remove dependency on ethdb
...
This removes the core/types -> leveldb dependency.
2017-01-06 14:15:22 +01:00
Felix Lange
7731061903
core/vm: move Log to core/types
...
This significantly reduces the dependency closure of ethclient, which no
longer depends on core/vm as of this change.
All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too,
the constructor simply returned a literal.
2017-01-06 14:15:22 +01:00
Felix Lange
b9683d3748
params: avoid importing p2p/discover for bootnodes
...
params is imported by leaf-ish library packages and should not pull in
the p2p stack.
2017-01-06 14:15:21 +01:00
Zsolt Felfoldi
66979aa468
light: fixed data race in TestTxPool
2017-01-06 04:34:35 +01:00
Zsolt Felfoldi
93f9c023cc
les: fixed selectPeer deadlock, improved request distribution
...
les/flowcontrol: using proper types for relative and absolute times
2017-01-06 04:34:31 +01:00
Péter Szilágyi
e0ee0cc66a
Merge pull request #3517 from karalabe/empty-ios-prefix
...
build: finally settle on empty iOS ObjC package prefixes
2017-01-05 15:29:36 +02:00
Péter Szilágyi
9b135a9c20
build: finally settle on empty iOS ObjC package prefixes
2017-01-05 14:32:30 +02:00
Felix Lange
e171bf74f8
core/types: remove redundant SignECDSA wrappers, rename to SignTx
2017-01-05 12:59:17 +01:00
Péter Szilágyi
bb2e99dfc2
Merge pull request #3417 from karalabe/mobile-polishes
...
Account management API polishes
2017-01-05 13:57:12 +02:00
Péter Szilágyi
b37d175e59
accounts, internal, mobile: polish accounts API, extend Android tests
2017-01-05 12:58:03 +02:00
Maran
f087633efd
swarm/api/http: add support for CORS headers ( #3388 )
2017-01-05 11:57:41 +01:00
Péter Szilágyi
bbce726c8a
Merge pull request #3515 from bas-vk/exportropsten
...
core,cmd/utils: bugfix for ropsten dump imports
2017-01-05 12:54:45 +02:00
Jeffrey Wilcke
bbc4ea4ae8
core/vm: improved EVM run loop & instruction calling ( #3378 )
...
The run loop, which previously contained custom opcode executes have been
removed and has been simplified to a few checks.
Each operation consists of 4 elements: execution function, gas cost function,
stack validation function and memory size function. The execution function
implements the operation's runtime behaviour, the gas cost function implements
the operation gas costs function and greatly depends on the memory and stack,
the stack validation function validates the stack and makes sure that enough
items can be popped off and pushed on and the memory size function calculates
the memory required for the operation and returns it.
This commit also allows the EVM to go unmetered. This is helpful for offline
operations such as contract calls.
2017-01-05 11:52:10 +01:00
RJ
2126d81488
accounts/abi: add support for function types ( #3405 )
2017-01-05 11:46:44 +01:00
Péter Szilágyi
06b381d1c9
cmd/utils: disallow --fakepow for live operation ( #3512 )
2017-01-05 11:40:56 +01:00
Péter Szilágyi
08eea0f0e4
accounts, core, crypto, internal: use normalised V during signature handling ( #3455 )
...
To address increasing complexity in code that handles signatures, this PR
discards all notion of "different" signature types at the library level. Both
the crypto and accounts package is reduced to only be able to produce plain
canonical secp256k1 signatures. This makes the crpyto APIs much cleaner,
simpler and harder to abuse.
2017-01-05 11:35:23 +01:00
Bas van Kervel
a1798a8188
core,cmd/utils: bugfix for ropsten dump imports
2017-01-05 11:31:57 +01:00
Péter Szilágyi
0fac8cba47
Merge pull request #3511 from karalabe/live-fakepow
...
cmd/utils, eth, les: bubble --fakepow flag into eth/les too
2017-01-04 13:27:51 +02:00
Péter Szilágyi
1ca74aba6f
Merge pull request #3505 from bas-vk/txinblock
...
ethclient: hex encode request args for TransactionInBlock
2017-01-04 12:43:27 +02:00
Péter Szilágyi
2ce30382d9
cmd/utils, eth, les: bubble --fakepow flag into eth/les too
2017-01-04 10:42:41 +02:00
Bas van Kervel
8bc545be2a
ethclient: hex encode request args for TransactionInBlock
2017-01-03 14:46:00 +01:00
Péter Szilágyi
891fcd8ce1
Merge pull request #3486 from bas-vk/txbyhash
...
ethclient: pass ptr when parsing eth_getTransactionByHash result
2017-01-03 10:56:22 +02:00
Guillaume NICOLAS
bd06091874
mobile: add SetVerbosity ( #3492 )
2017-01-02 18:12:31 +01:00
Péter Szilágyi
3e3edcc465
Merge pull request #3490 from karalabe/fix-miner-api
...
eth: fix miner start API to accept int, not hexint
2016-12-23 14:59:26 +02:00
Péter Szilágyi
89a32267f7
eth: fix miner start API to accept int, not hexint
2016-12-23 11:28:11 +02:00
Bas van Kervel
021177ca9b
ethclient: pass ptr when parsing eth_getTransactionByHash result
2016-12-22 14:45:01 +01:00
Péter Szilágyi
115364b0a9
Merge pull request #3475 from fjl/rpc-hex-improvements
...
rpc: remove HexBytes, HexNumber
2016-12-22 13:49:16 +02:00
bas-vk
6d15d00ac4
accounts/abi: add support for "anonymous" and "indexed" for events ( #3464 )
2016-12-22 01:51:20 +01:00
Valentin Wüstholz
bdaa43510b
cmd/disasm: fix off-by-one error and improve error handling ( #3482 )
2016-12-22 00:37:27 +01:00
Aron Fischer
9a51f5c350
swarm/http: check error returned by reader.Size ( #3470 )
2016-12-22 00:35:05 +01:00
Aron Fischer
301c0a6303
swarm/storage: call size before seek-from-end ( #3469 )
2016-12-22 00:34:05 +01:00
Aron Fischer
65f486ff02
swarm/api: check for zero length manifest error ( #3468 )
2016-12-22 00:32:08 +01:00
Péter Szilágyi
df096a7771
Merge pull request #3479 from karalabe/android-ropsten-dao
...
mobile: fix ropsten chain configs
2016-12-21 13:25:00 +02:00
Péter Szilágyi
0e9a9f243f
mobile: fix ropsten chain configs
2016-12-21 13:10:57 +02:00
Felix Lange
12c964b2b7
internal/ethapi: fix hex handling for eth_call input and eth_sendRawTransaction
2016-12-20 14:46:22 +01:00
Felix Lange
cf71f5cd60
rpc: remove HexNumber, replace all uses with hexutil types
...
This change couldn't be automated because HexNumber was used for numbers
of all sizes.
2016-12-20 14:41:58 +01:00
Felix Lange
adab2e16bd
rpc: remove HexBytes, replace all uses with hexutil.Bytes
2016-12-20 14:35:26 +01:00
Felix Lange
a3e3235d97
rpc: improve error messages for invalid arguments
...
The message now includes the index of the invalid arg.
2016-12-20 14:35:26 +01:00
Felix Lange
2be3c4b0e3
internal/jsre: fix built-in inspect function
...
inspect was broken by ffaf58f0a9 (May 2016!).
Looks like nobody uses this function.
2016-12-20 14:35:14 +01:00
Péter Szilágyi
0ee796632a
eth, miner: verify PoW in the remote agent to notify submitter ( #3438 )
2016-12-20 02:14:36 +01:00
Nick Johnson
1fe67c125d
eth/filters: add FindOnce for iterator-like operation ( #3435 )
...
This commit introduces a FindOnce method for filters. FindOnce finds the next block that
matches the filter and returns all matching logs from that block. If there are no further
matching logs, it returns a nil slice. This method allows callers to iterate over large
sets of logs progressively.
The changes introduce a small inefficiency relating to mipmaps: the first time a filter is
called, it acts as if all mipmaps are matched, and thus iterates several blocks near the
requested start point. This is in the interest of simplicity and avoiding duplicate mipmap
lookups each time FindOnce is called.
2016-12-20 02:00:03 +01:00
gluk256
ba996f5e27
whisper: refactoring ( #3411 )
...
* whisper: refactored message processing
* whisper: final polishing
* whisper: logging updated
* whisper: moved the check, changed the default PoW
* whisper: refactoring of message queuing
* whisper: refactored parameters
2016-12-20 00:58:01 +01:00
Péter Szilágyi
64bf5bafe9
Merge pull request #3403 from VoR0220/fixedPointsAbi
...
accounts/abi: prepare ABI to handle fixed point types
2016-12-19 14:22:57 +02:00
Péter Szilágyi
4d05bbf2a4
accounts/abi: clean up PR and add type parsing tests
2016-12-19 14:11:11 +02:00
VoR0220
471990f771
accounts/abi: prepare ABI to handle fixed point types
...
Signed-off-by: VoR0220 <rj@erisindustries.com >
2016-12-19 14:11:11 +02:00
Péter Szilágyi
7b623aab9d
Merge pull request #3454 from karalabe/allow-zeroprice-tx
...
core: allow zero priced transactions from inexistent accounts too
2016-12-19 12:23:46 +02:00
Péter Szilágyi
e871ae1270
Merge pull request #3453 from fjl/api-sign-recover-hex
...
internal/ethapi: fix hex handling for eth_sign, personal_{sign,recover}
2016-12-19 11:49:21 +02:00
Péter Szilágyi
c44830ebf3
core, light: allow zero cost txs from inexistent accounts too
2016-12-16 13:30:39 +02:00
Felix Lange
3e4a04f34d
internal/ethapi: fix hex handling for eth_sign, personal_{sign,recover}
2016-12-16 11:32:51 +01:00
Péter Szilágyi
38827dd9ca
Merge pull request #3445 from karalabe/govet-ip-signal
...
p2p/nat: fix a bytes based net.IP comparison
2016-12-15 16:51:14 +02:00
Péter Szilágyi
21fd9f037e
p2p/nat: fix a bytes based net.IP comparison
2016-12-15 16:28:31 +02:00
Péter Szilágyi
033763eaf7
Merge pull request #3442 from karalabe/discv5-fix-ip-comparison
...
p2p/discover, p2p/discv5: use flexible comparison for IPs
2016-12-14 19:15:05 +02:00
Péter Szilágyi
2573094df2
p2p/discover, p2p/discv5: use flexible comparison for IPs
2016-12-14 18:40:49 +02:00
Péter Szilágyi
745026b7b4
Merge pull request #3433 from karalabe/badblock-order-fix
...
core: import future blocks one-by-one, enfore chain ancestry
2016-12-14 16:45:48 +02:00
Péter Szilágyi
a07d955eaa
Merge pull request #3441 from karalabe/begin-1.5.6-cycle
...
VERSION, params: start Geth 1.5.6 development cycle
2016-12-14 16:28:45 +02:00
Péter Szilágyi
9d6f4e2e7f
VERSION, params: start Geth 1.5.6 development cycle
2016-12-14 16:27:35 +02:00
Péter Szilágyi
ff07d54843
Merge pull request #3440 from karalabe/release-1.5.5
...
params: stable version 1.5.5
2016-12-14 16:06:54 +02:00
Péter Szilágyi
e53879328c
params: stable version 1.5.5
2016-12-14 15:57:44 +02:00
Péter Szilágyi
b792412d31
Merge pull request #3430 from karalabe/miner-pending-race
...
miner: clean up unconfirmed mined block tracking
2016-12-14 15:05:50 +02:00
Péter Szilágyi
49c6f1053c
Merge pull request #3421 from ethersphere/s/swarm-cmd
...
cmd/swarm: one command with subcommands
2016-12-14 12:26:20 +02:00
Péter Szilágyi
4d960f6dc6
Merge pull request #3439 from karalabe/drop-deprecated-wily
...
build: Ubuntu wily was officially deprecated, drop support
2016-12-14 12:18:03 +02:00
Péter Szilágyi
8941665896
build: Ubuntu wily was officially deprecated, drop support
2016-12-14 11:45:14 +02:00
Péter Szilágyi
9cc0f60666
Merge pull request #3429 from bas-vk/txpool-crash
...
core: init pending state in tx pool on creation
2016-12-14 11:17:39 +02:00
Péter Szilágyi
fdb8edf5ea
Merge pull request #3427 from Arachnid/gzipdump
...
cmd/utils, eth: Add gzip support for chain dump and restore
2016-12-14 11:15:21 +02:00
Nick Johnson
9ba9fe818d
cmd/utils, eth: Add gzip support for chain dump and restore
2016-12-14 08:59:55 +00:00
zelig
92224d27b1
cmd/swarm: testnet bootnodes IP address change
2016-12-14 08:14:52 +01:00
Péter Szilágyi
157a4bd926
Merge pull request #3437 from karalabe/update-ci-go1.7.4
...
travis, appveyor: build with Go 1.7.4
2016-12-13 22:30:14 +02:00
Péter Szilágyi
29d6881112
travis, appveyor: build with Go 1.7.4
2016-12-13 19:54:56 +02:00
Péter Szilágyi
e2692921e1
Merge pull request #3434 from karalabe/drop-legacy-android
...
cmd/geth: drop legacy android code
2016-12-13 18:53:06 +02:00
Péter Szilágyi
b63138c3ec
cmd/geth: drop legacy android code
2016-12-13 18:17:49 +02:00
Péter Szilágyi
a59fcc33e6
core: import future blocks one-by-one, enfore chain ancestry
2016-12-13 16:19:45 +02:00
Péter Szilágyi
07311f3157
miner: rename pending to unconformed, add bounds and ops tests
2016-12-13 15:10:52 +02:00
Péter Szilágyi
17637ed1bb
miner: clean up unconfirmed mined block tracking
2016-12-13 14:31:32 +02:00
Péter Szilágyi
f15828e901
Merge pull request #3431 from karalabe/miner-race-fixes
...
Miner race fixes
2016-12-13 14:30:26 +02:00
Péter Szilágyi
dadd689359
miner: fix data race on setting etherbase/extradata
2016-12-13 14:04:05 +02:00
Péter Szilágyi
b750cab56a
miner: fix a race between remote agent start/loop
2016-12-13 14:03:57 +02:00
zelig
485748c416
cmd/swarm: improve uploader output and add defaultpath option
2016-12-13 12:54:13 +01:00
zelig
080699f7df
cmd/swarm: ethapi not required
2016-12-13 12:54:13 +01:00
zelig
8e35f54931
cmd/swarm: trim trailing slash from bzzapi url
2016-12-13 12:54:13 +01:00
zelig
d44f1a77ee
cmd/swarm: add default bootnodes for testnet 3
2016-12-13 12:54:13 +01:00
zelig
4181046488
swarm/network, cmd/swarm: swarm default network id is 3 (to match Ropsten)
2016-12-13 12:54:13 +01:00
zelig
d7c398b638
build: add swarm command to binary packages, update README
2016-12-13 12:54:13 +01:00
zelig
5f5d0aa4ff
cmd/swarm: subsume cmd/bzz* as subcommands under swarm
...
cmd/swarm: subsume cmd/bzz* under cmd/swarm as subcommands
2016-12-13 12:54:05 +01:00
Bas van Kervel
9f1520b4c0
core: init pending state in tx pool on creation
2016-12-13 10:38:04 +01:00
Felix Lange
a98e8c0889
Merge pull request #3413 from zsfelfoldi/light-topic4
...
les, p2p/discv5: implement server pool, improve peer selection, light fetcher and topic searching
2016-12-12 20:46:15 +01:00
Péter Szilágyi
ee445a2ba4
Merge pull request #3425 from karalabe/netstats-time-fixup
...
netstats: time and block history
2016-12-12 14:55:00 +02:00
Péter Szilágyi
b2c226cb7d
ethstats: implement block history retrievals
2016-12-12 14:01:52 +02:00
Péter Szilágyi
13614f4e1c
ethstats: fix timestamps and add custom proto support
2016-12-11 20:16:30 +02:00
bas-vk
4f9ccdd70f
build: safe update of PATH on Windows ( #3419 )
...
NSIS has a default MAX_STR_LEN of 1024. If $ENV{PATH} is longer
the returned string is truncated to an empty string. Its then not
possible to distinguis between the variable not set or too long.
As a result the variable is set with the location where geth and/or
dev tools are installed. This may override any previous set values.
2016-12-11 00:01:57 +01:00
bas-vk
4e36b1e3da
core: bugfix state change race condition in txpool ( #3412 )
...
The transaction pool keeps track of the current nonce in its local pendingState. When a
new block comes in the pendingState is reset. During the reset it fetches multiple times
the current state through the use of the currentState callback. When a second block comes
in during the reset its possible that the state changes during the reset. If that block
holds transactions that are currently in the pool the local pendingState that is used to
determine nonces can get out of sync.
2016-12-10 23:54:58 +01:00
Zsolt Felfoldi
f12f8a6c14
les, light: add block availability check for ODR requests
2016-12-10 09:53:25 +01:00
Zsolt Felfoldi
c57c54ce96
eth, les: defer starting LES service until ETH initial sync is finished
2016-12-10 09:53:25 +01:00
Zsolt Felfoldi
c8130df1d9
les: using random request IDs
2016-12-10 09:53:25 +01:00
Zsolt Felfoldi
af8a742d00
les: improved header fetcher and server statistics
2016-12-10 09:53:08 +01:00
Zsolt Felfoldi
e67500aa15
les: fixed light fetcher request ID matching
2016-12-08 13:38:15 +01:00
Zsolt Felfoldi
a6d3bf6fc3
p2p/discv5: search and lookup improvement
2016-12-08 13:38:15 +01:00
Zsolt Felfoldi
3e617f3cd6
les: implement light server pool
2016-12-08 13:38:15 +01:00
Péter Szilágyi
0fe35b907a
mobile: iOS naming and API fixes for generators and Swift ( #3408 )
...
* build: modify the iOS namespace to iGeth (gomobile limitation)
* mobile: assign names to return types for ObjC wrapper
* mobile: use more expanded names for iOS/Swift API
2016-12-08 13:09:26 +01:00
Jeffrey Wilcke
3fc7c97827
core, core/vm: implemented a generic environment ( #3348 )
...
Environment is now a struct (not an interface). This
reduces a lot of tech-debt throughout the codebase where a virtual
machine environment had to be implemented in order to test or run it.
The new environment is suitable to be used en the json tests, core
consensus and light client.
2016-12-06 02:16:03 +01:00
Felix Lange
7f79d249a6
Merge pull request #3402 from fjl/ethclient-api-fixes
...
eth/filters, ethclient, ethereum: API improvements
2016-12-05 20:08:18 +01:00
Felix Lange
f138374027
ethereum: document use of Removed field for SubscribeFilterLogs
2016-12-05 10:57:11 +01:00
Felix Lange
f52a1ae849
core, core/vm, eth/filters: move Removed field into vm.Log
...
This field used to be assigned by the filter system and returned through
the RPC API. Now that we have a Go client that uses the underlying type,
the field needs to move. It is now assigned to true when the RemovedLogs
event is generated so the filter system doesn't need to care about the
field at all.
While here, remove the log list from ChainSideEvent. There are no users
of this field right now and any potential users could subscribe to
RemovedLogsEvent instead.
2016-12-05 10:57:11 +01:00
Felix Lange
3bc0fe1ee3
ethclient, ethereum: add NotFound, split transactions out of ChainReader
...
ethclient now returns ethereum.NotFound if the server returns null and
no error while accessing blockchain data.
The light client cannot provide arbitrary transactions. The change to
split transaction access into its own interface emphasizes that
transactions should not be relied on and recommends use of logs.
2016-12-05 10:57:11 +01:00
Felix Lange
fa0cc27400
ethclient: use package hexutil for number encoding
2016-12-04 19:45:55 +01:00
Felix Lange
4cb29bde2e
ethclient: don't crash if server returns null uncle header
...
It should never return null for a known uncle, but even if it does
we can't just crash.
2016-12-04 19:45:55 +01:00
gluk256
2dcf75a722
whisper/shhapi, whisper/whisperv5: refactoring ( #3364 )
...
* Filter refactoring
* API tests added + bugfix
* fixed the error logs
* FilterID fixed
* test cases fixed
* key generation updated
* POW updated
* got rid of redundant stuff
2016-12-01 20:09:22 +01:00
Nick Johnson
671fd94e25
swarm/api: Update ENS root address for Ropsten & prod ( #3391 )
2016-12-01 19:33:10 +01:00
Péter Szilágyi
717d2f6f9e
Merge pull request #3390 from bas-vk/statsd-stop
...
ethstats: check if received event is valid
2016-12-01 10:30:19 +02:00
Maran
8cb95cb916
README: removed develop mentions
2016-11-30 19:39:05 +01:00
Bas van Kervel
56b446190a
ethstats: check if received event is valid
2016-11-30 17:47:39 +01:00
Péter Szilágyi
86f9e836be
cmd/geth: tidied up the source ( #3385 )
...
cmd/geth: tidied up the source
2016-11-30 13:34:24 +02:00
Péter Szilágyi
a90a170361
Merge pull request #3373 from karalabe/ethstats-block-fields
...
ethstats: don't drop concurrent head reports (mini forks)
2016-11-30 12:36:22 +02:00
Péter Szilágyi
889a5e0cf1
Merge pull request #3368 from bas-vk/sha3
...
node: improve error handling for web3_sha3 RPC method
2016-11-30 12:10:05 +02:00
Martin Holst Swende
9f8bc00cf5
eth, miner: removed unnecessary state.Copy()
...
* miner: removed unnecessary state.Copy()
* eth: made use of new miner method without state copying
* miner: More documentation about new method
2016-11-30 11:48:48 +02:00
Luca Zeug
3363a1c227
cmd/utils: update helpscreen's testnet description ( #3377 )
2016-11-29 16:23:11 +02:00
Péter Szilágyi
fc9939c4e1
Merge pull request #3376 from karalabe/drop-dao-flags
...
cmd: drop DAO related choice flags since ETC diverged
2016-11-29 16:12:40 +02:00
Péter Szilágyi
7267f796e6
cmd: drop DAO related choice flags since ETC diverged
2016-11-29 15:50:27 +02:00
Péter Szilágyi
7dfeceb8cc
ethstats: don't drop concurrent head reports (mini forks)
2016-11-29 14:17:20 +02:00
Péter Szilágyi
3807e520ec
Merge pull request #3370 from karalabe/ethstats-block-fields
...
ethstats: report block miner, gas limit and gas consumption
2016-11-29 13:15:58 +02:00
Péter Szilágyi
7625b1a4f4
ethstats: report block miner, gas limit and gas consumption
2016-11-29 11:39:56 +02:00
Bas van Kervel
1fc5cc1b59
node: improve error handling for web3_sha3 RPC method
2016-11-29 09:36:51 +01:00
Steven Roose
61ccb43487
core/types: Document Transaction.To ( #3366 )
2016-11-28 21:56:38 +01:00
Jeffrey Wilcke
bf24b120d7
VERSION, params: bump unstable version 1.5.5 ( #3361 )
2016-11-28 15:09:12 +01:00
Jeffrey Wilcke
b70acf3c5b
params: stable version 1.5.4 ( #3360 )
2016-11-28 14:59:26 +01:00
bas-vk
b5be6b72cb
eth/filter: add support for pending logs ( #3219 )
2016-11-28 14:59:06 +01:00
Felix Lange
318ad3c1e4
common/hexutil: fix Test{Decode,Unmarshal}Uint64 on 32bit arch ( #3363 )
2016-11-28 13:55:56 +01:00
Viktor Trón
e949a2ed2f
cmd/bzzd: swarm daemon fixes ( #3359 )
...
* cmd/bzzd: add missing p2p/discovery flags
* cmd/bzzd: fix two bugs crashing bzzd if bootnodes flag given
* cmd/bzzd: make no swap default, renamed flag bzznoswap->bzzswap
* internal/web3ext: correct methods for bzz IPC module
* cmd/bzzd: ethapi param not mandatory. Warning if no blockchain
* cmd/bzzd: correct default IPC modules in help string
* cmd/utils: fix help description for networkId - add Ropsten
* cmd/bzz, swarm/api, swarm/network: add swarm networkId flag
* cmd/bzzd: change nosync flag to sync and BootTFlag
2016-11-28 13:29:33 +01:00
Péter Szilágyi
8d0108fc5d
Merge pull request #3355 from fjl/hexutil-2
...
Improve hex encoding/decoding
2016-11-28 13:29:16 +02:00
Péter Szilágyi
ba41efa8a0
Merge pull request #3362 from karalabe/cocoapods-fix-3000
...
build: use single CocoaPods package, pre-release dev builds
2016-11-28 13:28:02 +02:00
Péter Szilágyi
f81660b6db
build: use single CocoaPods package, pre-release dev builds
2016-11-28 13:09:43 +02:00
Felix Lange
91bceb4ace
ethclient: "addresses" -> "address" in filter query encoding
2016-11-28 11:37:13 +01:00
Felix Lange
be746628c7
eth/filters: simplify query object decoding
2016-11-28 11:37:13 +01:00
Felix Lange
ec5f531f4b
accounts: don't use common.Address for address field
...
common.Address JSON encoding now enforces the 0x prefix, but key files
don't have the prefix.
2016-11-28 11:37:13 +01:00
Felix Lange
37e5816bcd
common: use package hexutil for fixed size type encoding
2016-11-28 11:37:13 +01:00
Felföldi Zsolt
665bb43a4c
light: implemented VMState.Empty() ( #3357 )
2016-11-28 11:31:15 +01:00
Viktor Trón
e4bf004560
build/ci: add swarm related executables (bzzd, bzzup, bzzhash) to binary packages ( #3354 )
2016-11-28 11:25:19 +01:00
Felix Lange
1609df3275
ethclient: use package hexutil for JSON handling
2016-11-28 11:22:52 +01:00
Felix Lange
24f288770e
core/types: use package hexutil for JSON handling
2016-11-28 11:22:52 +01:00
Felix Lange
65e6319b12
core/vm: use package hexutil for JSON handling
2016-11-28 11:22:52 +01:00
Felix Lange
ec75953f50
common/hexutil: new package for 0x hex encoding
...
The new package is purpose-built to handle the encoding consumed and
produced by the RPC API.
2016-11-28 11:22:52 +01:00
Jeffrey Wilcke
801a13f791
core: fixed unwinding bad hash ( #3347 )
...
Fixed unwinding of bad hashes when already on the canon chain
2016-11-28 10:37:42 +01:00
Péter Szilágyi
eea8d6aa96
Merge pull request #3356 from fjl/accounts-no-watch-on-windows
...
accounts: disable file system watcher on windows
2016-11-28 10:36:39 +02:00
Péter Szilágyi
2b9cd71d67
Merge pull request #3352 from fjl/build-git-tag
...
internal/build: use 'git tag --points-at' to get the current tag
2016-11-28 10:33:12 +02:00
Felix Lange
5df83e3bd9
accounts: disable file system watcher on windows
...
The watcher is unreliable and causes test failures on Windows.
Disable it until we have a better solution.
2016-11-28 03:09:58 +01:00
Jeffrey Wilcke
6061707371
core: eip unit tests ( #3309 )
2016-11-28 01:33:28 +01:00
Felix Lange
20899c05a4
internal/build: use 'git tag --points-at' to get the current tag
...
This should restore support for building with git 1.x.
2016-11-27 18:42:48 +01:00
Péter Szilágyi
4c8c5e2f74
cmd, ethstats, les, mobile, params: native netstats ( #3336 )
2016-11-25 16:55:06 +01:00
Felix Lange
d1a95c643e
Merge pull request #3325 from fjl/p2p-netrestrict
...
Prevent relay of invalid IPs, add --netrestrict
2016-11-25 13:59:18 +01:00
Péter Szilágyi
9c3ea0d32d
Merge pull request #3346 from obscuren/registrar-removal
...
common/registrar, eth: removed registrar (tech debt)
2016-11-25 14:22:53 +02:00
Jeffrey Wilcke
67e0894d9e
common/httpclient, les: removed httpclient
2016-11-25 13:10:44 +01:00
Jeffrey Wilcke
6cc87a31c6
cmd/utils, internal/web3ext: removed httpGet
2016-11-25 12:31:06 +01:00
Jeffrey Wilcke
b8c766a9c5
eth: removed http doc backend api
2016-11-25 12:17:10 +01:00
Péter Szilágyi
66441c9b4b
Merge pull request #3345 from karalabe/cleanup-mobile-crossbuilds
...
Makefile, build: do proper mobile builds, not cross builds
2016-11-25 13:15:57 +02:00
Felix Lange
18d51d1de8
common/registrar: delete the old registrar code
...
The registrar was broken, unmaintained and there is a much better
replacement: ENS.
(cherry picked from commit 6ca8f57b08d550613175260cab7633adcacbe6ab)
2016-11-25 12:15:28 +01:00
Felix Lange
01d5fc670b
internal/web3ext: remove registrar-related extensions
...
(cherry picked from commit d54ad55c6079ae6eab93d7f34ce5c4ec829f8e5b)
2016-11-25 12:15:12 +01:00
Péter Szilágyi
0f1cbfd3da
Makefile, build: do proper mobile builds, not cross builds
2016-11-25 12:51:10 +02:00
Felix Lange
586f10ecb1
cmd/utils, VERSION: 1.5.4 unstable
2016-11-24 23:06:25 +01:00
Felix Lange
978737f5d5
cmd/utils: 1.5.3 stable
2016-11-24 23:03:13 +01:00
Felix Lange
fa0e057f8a
Merge pull request #3341 from obscuren/touch-delete-fix
...
core, core/state: fixed consensus issue added touch revert
2016-11-24 23:01:34 +01:00
Felix Lange
bca7bfa927
tests: update from github.com/ethereum/tests @ f21c49dc816e
2016-11-24 22:54:50 +01:00
Jeffrey Wilcke
12d654a6fc
core, core/state: fixed consensus issue added touch revert
...
Implemented proper touch revert journal entries and copied a Parity
consensus bug in order to remain in sync with the current longest chain.
2016-11-24 22:12:54 +01:00
Péter Szilágyi
8e64e4383c
Merge pull request #3338 from karalabe/miner-driveby-cleanup
...
miner: remove dead code, add gas price getter
2016-11-24 15:35:38 +02:00
Péter Szilágyi
f59d8cde26
Merge pull request #3337 from karalabe/core-driveby-cleanup
...
core: remove dead event
2016-11-24 15:34:51 +02:00
Péter Szilágyi
94c0519be2
miner: remove dead code, add gas price getter
2016-11-24 15:24:49 +02:00
Péter Szilágyi
529c502876
core: remove dead event
2016-11-24 15:23:01 +02:00
Jeffrey Wilcke
c04c8f10f0
core: improved bad block error reporting ( #3320 )
2016-11-23 13:32:25 +01:00
Péter Szilágyi
e05d35e6e0
Merge pull request #3317 from fjl/build-unstable-simplify
...
build, internal/build: simplify unstable build checks
2016-11-23 12:24:28 +02:00
Felix Lange
e1e2df656a
internal/build: add support for git tag in local Environment
...
I didn't add this initially because the command I tried was too slow.
The 'git for-each-ref ...' invocation takes 40ms on my machine. That
ought to be acceptable.
2016-11-23 10:40:22 +01:00
Péter Szilágyi
f7da5b29f0
Merge pull request #3327 from karalabe/cocoapods-version-round2
...
build: remove hash metadata from cocoapod version
2016-11-23 11:32:49 +02:00
Péter Szilágyi
2b4c236773
build: remove hash metadata from cocoapod version
2016-11-23 10:49:25 +02:00
Jeffrey Wilcke
a8ca75738a
core: implemented new ropsten testnet
2016-11-23 09:34:01 +01:00
Jeffrey Wilcke
aad4890082
cmd/geth, core, light, mobile: removed state account StartingNonce
...
All account's nonce start at 0.
2016-11-23 09:34:01 +01:00
Felix Lange
e5edd3b983
cmd/bootnode, cmd/geth, cmd/bzzd: add --netrestrict
2016-11-22 22:21:18 +01:00
Felix Lange
a47341cf96
p2p, p2p/discover, p2p/discv5: add IP network restriction feature
...
The p2p packages can now be configured to restrict all communication to
a certain subset of IP networks. This feature is meant to be used for
private networks.
2016-11-22 22:21:18 +01:00
Felix Lange
e46bda5093
swarm/network: prevent relay of invalid IPs
2016-11-22 22:21:18 +01:00
Felix Lange
a98d1d67d6
p2p/discover, p2p/discv5: prevent relay of invalid IPs and low ports
...
The discovery DHT contains a number of hosts with LAN and loopback IPs.
These get relayed because some implementations do not perform any checks
on the IP.
go-ethereum already prevented relay in most cases because it verifies
that the host actually exists before adding it to the local table. But
this verification causes other issues. We have received several reports
where people's VPSs got shut down by hosting providers because sending
packets to random LAN hosts is indistinguishable from a slow port scan.
The new check prevents sending random packets to LAN by discarding LAN
IPs sent by Internet hosts (and loopback IPs from LAN and Internet
hosts). The new check also blacklists almost all currently registered
special-purpose networks assigned by IANA to avoid inciting random
responses from services in the LAN.
As another precaution against abuse of the DHT, ports below 1024 are now
considered invalid.
2016-11-22 22:21:18 +01:00
Felix Lange
ba2884f343
p2p/discover, p2p/discv5: use netutil.IsTemporaryError
2016-11-22 22:21:15 +01:00
Felix Lange
1d80155d5e
p2p/netutil: new package for network utilities
...
The new package contains three things for now:
- IP network list parsing and matching
- The WSAEMSGSIZE workaround, which is duplicated in p2p/discover and
p2p/discv5.
2016-11-22 22:20:38 +01:00
Péter Szilágyi
a0e42aa4e2
build: mobile CI fixes ( #3322 )
...
* build: use metatags on cocoapods, not prerelease tags
* build: fix Maven and CocoaPods author email addresses
2016-11-22 17:35:49 +01:00
Felix Lange
92959cd4ef
appveyor: use native 32bit go
...
This simplifies the build and should speed it up a bit because the
standard library doesn't need to be cross compiled on the 32bit builder.
2016-11-21 12:22:55 +01:00
sandakersmann
2c802399c3
README: Changed http:// to https:// for swarm link ( #3312 )
...
Changed http:// to https:// on one link in README.md
2016-11-20 19:40:59 +01:00
Felix Lange
8ed72a8470
build: simplify unstable build check
...
ci.go decides whether a build is unstable by looking at the branch and
tag. This causes issues when a GitHub release is created on the master
branch because the build is considered unstable (the CI environment
reports the branch as "master").
Fix this by looking at the tag only. Any tagged build is stable.
2016-11-18 19:55:19 +01:00
Aron Fischer
0d9a8207d6
cmd/bzzup: trim directory in the manifest entry path ( #3299 )
2016-11-18 14:41:37 +01:00
FrankWang
04edbb0703
node: Remove redundant filepath.Join in parsePersistentNodes ( #3300 )
2016-11-18 12:45:06 +01:00
Nick Johnson
e1c1fce92c
cmd/utils, VERSION: 1.5.3 unstable ( #3306 )
2016-11-18 12:33:47 +01:00
Nick Johnson
c8695209f6
core: Don't perform EIP150 hash check on uncles ( #3303 )
2016-11-18 12:01:54 +01:00
Nick Johnson
9b95112a2d
cmd/utils: Set version string to stable ( #3304 )
2016-11-18 11:57:48 +01:00
Viktor Trón
a602c57c8d
README: add documentation for bzz related executables to the table ( #3294 )
2016-11-18 11:56:27 +01:00
Péter Szilágyi
f3228592f5
travis: dash of black magic to summon the cache daemon ( #3288 )
2016-11-17 16:15:17 +01:00
Nick Johnson
87b8254da1
Dockerfile: Add git dependency to Dockerfile ( #3295 )
2016-11-17 15:38:14 +01:00
Felix Lange
20eab80189
cmd/utils, VERSION: 1.5.2 unstable
2016-11-17 14:40:32 +01:00
Jeffrey Wilcke
810389c07a
Merge pull request #3278 from obscuren/version-1-5-1
...
utils: bump stable 1.5.1
2016-11-16 13:10:03 +01:00
Jeffrey Wilcke
3badd3782b
Merge pull request #3280 from fjl/fix-go15
...
build: set GO15VENDOREXPERIMENT in env.sh
2016-11-16 13:07:44 +01:00
Felix Lange
be2a264915
build: set GO15VENDOREXPERIMENT in env.sh
...
This should fix the 'make' build with Go 1.5.
2016-11-16 10:54:05 +01:00
Jeffrey Wilcke
b81baf5423
utils: bump stable
2016-11-16 10:46:22 +01:00
Péter Szilágyi
64359c9417
cmd/utils, mobile, params: set the correct field on testnet EIP 155 ( #3272 )
2016-11-16 00:46:40 +01:00
Péter Szilágyi
5a3853f83f
travis: only install the needed three android platforms ( #3274 )
2016-11-16 00:44:37 +01:00
Péter Szilágyi
532d746036
Merge pull request #3275 from obscuren/les-print-fix
...
les: fixed logging
2016-11-16 00:08:47 +02:00
Jeffrey Wilcke
c66e18b175
Merge pull request #3271 from Arachnid/dockerfiles
...
Dockerfile revamp
2016-11-15 22:54:51 +01:00
Jeffrey Wilcke
2d4bd3b3ad
les: fixed logging
2016-11-15 22:48:00 +01:00
Felix Lange
a96d6c68e2
cmd/utils: remove jit flag handling ( #3273 )
...
The jit config options are not handled, but random selection still took
place, printing confusing messages.
2016-11-15 22:20:18 +01:00
Nick Johnson
504815091f
containers/docker: Fix dockerfiles for new branch layout; add dockerfile in root
2016-11-15 17:57:56 +00:00
Péter Szilágyi
4dd3e7fe35
Merge pull request #3270 from fjl/version-1.5.1
...
README, VERSION: update for 1.5 release
2016-11-15 16:56:29 +02:00
Felix Lange
4c614909ff
README: update for develop->master switch, remove old build table
2016-11-15 15:53:35 +01:00
Felix Lange
b0a23c73cf
VERSION: bump unstable version to 1.5.1
2016-11-15 15:46:51 +01:00
Jeffrey Wilcke
922c1f8f9f
Merge pull request #3260 from obscuren/version-1-5-1
...
utils: unstable 1.5.1
2016-11-15 14:33:14 +01:00
Jeffrey Wilcke
c3c58eb601
Merge pull request #3259 from obscuren/version-1-5-0
...
utils: stable 1.5.0
2016-11-15 14:29:33 +01:00
Jeffrey Wilcke
ce3c52d17d
Merge pull request #3268 from fjl/build-master-unstable
...
build: master is unstable
2016-11-15 14:29:22 +01:00
Felix Lange
6663d0264e
build: master is unstable
2016-11-15 14:11:27 +01:00
Péter Szilágyi
6e4d623dc8
Merge pull request #3266 from fjl/travis-ppa-live
...
travis.yml: upload to the real PPA
2016-11-15 12:39:45 +02:00
Felix Lange
8e704d9718
travis.yml: upload to the real PPA
2016-11-15 11:13:07 +01:00
Péter Szilágyi
5bd32bd90d
travis: force xcode to finish iOS simulator configs ( #3265 )
2016-11-15 10:44:54 +01:00
Jeffrey Wilcke
b9f417e2e6
params: hardfork blocknumber ( #3264 )
2016-11-15 10:43:23 +01:00
Péter Szilágyi
9f7b087235
Merge pull request #3263 from karalabe/travis-cocoapods-gpg2
...
travis, build: further maven and gpg refinements
2016-11-15 10:40:28 +02:00
Péter Szilágyi
2cb9738649
travis, build: further maven and gpg refinements
2016-11-15 10:25:51 +02:00
Péter Szilágyi
0dc590a9f8
Merge pull request #3262 from karalabe/travis-cocoapods-gpg2
...
travis, build: fix mobile build issues on travis
2016-11-15 09:50:47 +02:00
Péter Szilágyi
dfd2c60509
travis, build: fix mobile build issues on travis
2016-11-15 09:49:00 +02:00
Jeffrey Wilcke
fd27393df3
utils: unstable 1.5.1
2016-11-15 00:40:40 +01:00
Jeffrey Wilcke
233950da40
utils: stable 1.5.0
2016-11-15 00:39:12 +01:00
Péter Szilágyi
bd0aafb4fd
Merge pull request #3258 from karalabe/unfuckup-travis
...
travis: work around "timeout features"
2016-11-15 01:17:12 +02:00
Jeffrey Wilcke
a672eae3d1
core, core/types: refactored tx chain id checking ( #3257 )
...
* core, core/types: refactored tx chain id checking
Refactored explicit chain id checking in to the Sender deriviation method
* cmd/utils, params: define chain ids
2016-11-14 21:37:13 +01:00
Péter Szilágyi
99d0d771a7
travis: work around "timeout features"
2016-11-14 20:10:22 +02:00
Felix Lange
8dcea0ac07
Merge pull request #2977 from karalabe/initial-mobile-suport
...
mobile: initial wrappers for mobile support
2016-11-14 18:10:03 +01:00
Jeffrey Wilcke
7a6c6ec946
cmd/utils, params: define chain ids
2016-11-14 17:23:39 +01:00
Péter Szilágyi
dfe79cc784
cmd/utils, mobile: place bootnodes in LGPL packages
2016-11-14 18:00:14 +02:00
Péter Szilágyi
4a439c2359
mobile: port wrappers to EIP155 and EIP158 fork
2016-11-14 18:00:14 +02:00
Péter Szilágyi
4c16c82500
travis, build: cocoapods build fixes and travis caches
2016-11-14 18:00:14 +02:00
Péter Szilágyi
5513c49c54
accounts/abi/bind, mobile: review fixes and android tests
2016-11-14 18:00:14 +02:00
Péter Szilágyi
b61f48e5aa
cmd, mobile, node, p2p: surface the discovery V5 bootnodes
2016-11-14 18:00:14 +02:00
Péter Szilágyi
de4b39a1a3
cmd/utils, mobile: update to reprice HF and light client
2016-11-14 17:56:58 +02:00
Péter Szilágyi
322502b441
build: iOS XCode framework build and upload
2016-11-14 17:56:58 +02:00
Péter Szilágyi
b7dfd333c5
.travis, build: Build step to push .aar to Maven Central
2016-11-14 17:56:58 +02:00
Péter Szilágyi
178da7c6a9
mobile: initial wrappers for mobile support
2016-11-14 17:56:58 +02:00
Felix Lange
d89ea3e6f9
Merge pull request #3253 from zsfelfoldi/light-topic3
...
Light client bugfixes and updates
2016-11-14 16:56:27 +01:00
Jeffrey Wilcke
6c9c1e6712
core, core/types: refactored tx chain id checking
...
Refactored explicit chain id checking in to the Sender deriviation method
2016-11-14 15:59:31 +01:00
Zsolt Felfoldi
b10bcd924b
core/types: turn off nonce checking for Call messages
2016-11-14 14:16:06 +01:00
Zsolt Felfoldi
d8e2e9a41f
light: updated CHTs for mainnet and testnet
2016-11-14 13:22:19 +01:00
Zsolt Felfoldi
1f70b279ba
p2p/discv5: added new bootnodes
2016-11-14 13:22:19 +01:00
Zsolt Felfoldi
e33e57684f
p2p/discv5: fixed bootnode connect issues
2016-11-14 13:22:19 +01:00
Zsolt Felfoldi
a0c6649960
les/flowcontrol: fixed locking scheme
2016-11-14 13:22:19 +01:00
Felix Lange
ca73dea3b9
Merge pull request #3179 from obscuren/eip-158
...
EIP158 & 160 Hardfork
2016-11-14 10:52:02 +01:00
Jeffrey Wilcke
648bd22427
core/vm/runtime: fixed go vet
2016-11-13 23:26:10 +01:00
Jeffrey Wilcke
0231d8f86d
core, params: EIP#170
2016-11-13 23:26:10 +01:00
Jeffrey Wilcke
a91908e567
tests: updated
2016-11-13 23:26:07 +01:00
Jeffrey Wilcke
ae33883c2f
cmd/utils: set temporary HF number
2016-11-13 15:50:32 +01:00
Jeffrey Wilcke
4dca5d4db7
core/types, params: EIP#155
2016-11-13 14:55:30 +01:00
Jeffrey Wilcke
21701190ac
les: cleaned up logging ( #3256 )
2016-11-13 12:34:50 +01:00
Jeffrey Wilcke
5cd86443ee
tests: added new EIP158 tests
2016-11-13 10:44:06 +01:00
Jeffrey Wilcke
779ddb1832
core/vm, params: EIP160: EXP reprice
2016-11-13 10:44:04 +01:00
Jeffrey Wilcke
445feaeef5
core, core/state, trie: EIP158, reprice & skip empty account write
...
This commit implements EIP158 part 1, 2, 3 & 4
1. If an account is empty it's no longer written to the trie. An empty
account is defined as (balance=0, nonce=0, storage=0, code=0).
2. Delete an empty account if it's touched
3. An empty account is redefined as either non-existent or empty.
4. Zero value calls and zero value suicides no longer consume the 25k
reation costs.
params: moved core/config to params
Signed-off-by: Jeffrey Wilcke <jeffrey@ethereum.org >
2016-11-13 10:44:04 +01:00
Felix Lange
932d973e36
Merge pull request #3248 from zsfelfoldi/light-topic3
...
Topic discovery bugfix
2016-11-11 06:28:33 +01:00
Felix Lange
9eb6f627fa
Merge pull request #3247 from fjl/bzzd
...
cmd: add swarm command line tools
2016-11-11 06:13:16 +01:00
Zsolt Felfoldi
323c2d6775
les: add missing nil check and handle quit in findServers
2016-11-11 03:16:46 +01:00
Zsolt Felfoldi
09baeec0da
discv5: fixed state machine lockup bug
2016-11-11 03:10:46 +01:00
Felix Lange
8247bccf71
cmd/bzzhash: add swarm hashing tool
2016-11-11 00:15:21 +01:00
Felix Lange
bbf37c0404
cmd/bzzup: add swarm upload tool
2016-11-11 00:15:21 +01:00
Felix Lange
e336b0d60e
cmd/bzzd: add swarm server daemon
2016-11-11 00:15:21 +01:00
Felix Lange
5cd4430a8d
swarm/api/http: reject requests without content-length
2016-11-11 00:15:21 +01:00
Felix Lange
23420ff67a
swarm/network: skip TestSyncDb
2016-11-11 00:15:21 +01:00
Felix Lange
ef50e01c5e
swarm/api: add bzz prefix to swarm directory
2016-11-11 00:15:20 +01:00
Felix Lange
cc0064b267
node: add InstanceDir method
2016-11-10 17:47:07 +01:00
Felix Lange
1aaa599147
accounts: add Find method
2016-11-10 17:46:45 +01:00
Felix Lange
d27472cc74
cmd/v5test: delete the v5test tool
2016-11-10 17:46:45 +01:00
Kenji Siu
80ea44c485
cmd/geth: improve command help messages ( #3227 )
2016-11-10 13:00:09 +02:00
Péter Szilágyi
dba29970d7
Merge pull request #3244 from karalabe/reinstate-cache
...
cmd/geth: reinstate dropped --cache flag
2016-11-09 19:21:30 +02:00
Péter Szilágyi
4cd2617848
cmd/geth: reinstate dropped --cache flag
2016-11-09 19:18:20 +02:00
xiekeyang
5b31794dfe
cmd/geth: use a loop in TestDAOForkBlockNewChain ( #3222 )
2016-11-09 03:15:48 +01:00
Felix Lange
355f4b0c15
Merge pull request #3232 from zsfelfoldi/light-topic3
2016-11-09 03:09:05 +01:00
Felix Lange
bbb5e5d56a
les: print 'experimental feature' warning on startup
2016-11-09 02:51:34 +01:00
Felix Lange
b8bd9a71c8
all: update license information
2016-11-09 02:51:34 +01:00
Felix Lange
be3865211c
core/types: remove header accessors
...
These accessors were introduced by light client changes, but
the only method that is actually used is GetNumberU64. This
commit replaces all uses of .GetNumberU64 with .Number.Uint64.
2016-11-09 02:19:07 +01:00
Felix Lange
0f19cbc6e5
p2p/discv5: fix build with Go 1.5, delete package testimg
2016-11-09 02:18:48 +01:00
Zsolt Felfoldi
49da42983a
p2p/discv5: added new topic discovery package
2016-11-09 02:12:53 +01:00
zsfelfoldi
7db7109a5b
cmd, eth: added light client and light server modes
2016-11-09 02:12:53 +01:00
Zsolt Felfoldi
9f8d192991
les: light client protocol and API
2016-11-09 02:12:53 +01:00
Zsolt Felfoldi
760fd65487
light: light chain, VM env and tx pool
2016-11-09 02:12:53 +01:00
Felix Lange
8b1df1a259
build: fix remote path for archive uploads ( #3243 )
...
archiveUpload did not handle absolute paths correctly. Fix it by using
the basename and ensure that uploads can be tested using -n.
2016-11-08 23:46:46 +01:00
Péter Szilágyi
9bc97a5785
build: NSIS based Windows installer ( #3240 )
...
This commit adds support for creating Windows installers to ci.go
2016-11-08 22:55:39 +01:00
Péter Szilágyi
6707f70b4a
Merge pull request #3241 from karalabe/fix-pgp-signer
...
internal/build: call correct signer method
2016-11-08 11:04:53 +02:00
Péter Szilágyi
df30ef5177
internal/build: call correct signer method
2016-11-08 10:59:19 +02:00
Péter Szilágyi
7e8ad6cad3
Merge pull request #3239 from karalabe/fix-windows-separators
...
build: fix missing .exe executable names on cross builds
2016-11-07 12:37:35 +02:00
Péter Szilágyi
e0e18f3841
Merge pull request #3231 from fjl/liner-update
...
console, vendor: update liner and enable multiline mode
2016-11-07 12:29:50 +02:00
Péter Szilágyi
328f0dd631
build: fix missing .exe executable names on cross builds
2016-11-07 12:18:28 +02:00
Péter Szilágyi
15c8d46b04
Merge pull request #3238 from karalabe/appveyor-azure-push
...
appveyor: build 386 too, upload both to the gethstore
2016-11-07 11:52:10 +02:00
Péter Szilágyi
052918a6d9
appveyor: build 386 too, upload both to the gethstore
2016-11-07 00:13:45 +02:00
Péter Szilágyi
afe41de6b3
travis: build to all supported linux architectures ( #3235 )
2016-11-04 12:48:20 +01:00
RJ
2ad5dba50a
accounts/abi: differentiate between static and dynamic arrays ( #3121 )
...
solves #3119
Signed-off-by: VoR0220 <rj@erisindustries.com >
2016-11-03 23:25:19 +01:00
Felix Lange
0b8a14fed7
console: enable multiline mode
2016-11-03 19:57:04 +01:00
Felix Lange
ac9013162e
vendor: update github.com/peterh/liner
2016-11-03 19:51:19 +01:00
Felix Lange
ed2bc7fbe9
build, internal/build: misc improvements ( #3229 )
...
* travis.yml: don't create darwin/386 builds
* build: remove godep remains
* internal/build: improve archives
- enable compression for zip files
- don't write half-complete archives
* build: add -unstable to archive names
2016-11-03 14:44:16 +02:00
Felix Lange
d0c820acd6
Merge pull request #3226 from karalabe/azure-gethstore
...
travis, build: implement uploading archives to azure
2016-11-03 10:41:20 +01:00
Péter Szilágyi
2f9f2cbb19
travis, build: enable 386 builds too for linux and osx
2016-11-03 10:32:58 +02:00
Péter Szilágyi
bad0de0dcb
vendor: pull in azure sdk and openpgp signer
2016-11-03 10:32:57 +02:00
Péter Szilágyi
3b62c145f8
travis, build: implement uploading archives to azure
2016-11-03 10:32:53 +02:00
Péter Szilágyi
3914e82f17
Merge pull request #3225 from kenji-isuntv/develop
...
common/math: go fmt
2016-11-02 18:38:22 +02:00
Kenji Siu
b522b788b6
common/math: go fmt
2016-11-02 22:58:59 +08:00
Jeffrey Wilcke
1b73c79234
common/math, core/vm: implement fast EXP ( #3214 )
...
* common/math, core/vm: implement fast EXP.
Courtesy @chfast & @karalabe
* common/math: fix go vet issues on exp calculation
2016-11-02 13:43:15 +02:00
Martin Holst Swende
36956da4d2
core: metrics collection for transaction events ( #3157 )
...
* core: Add metrics collection for transaction events; replace/discard for pending and future queues, as well as invalid transactions
* core: change namespace for txpool metrics
* core: define more metrics (not yet used)
* core: implement more tx metrics for when transactions are dropped
* core: minor formatting tweeks (will squash later)
* core: remove superfluous meter, fix missing pending nofunds
* core, metrics: switch txpool meters to counters
2016-11-01 14:46:11 +02:00
Péter Szilágyi
f4d878f3d8
Merge pull request #3216 from karalabe/fastsync-bigdb-tuning
...
core/state, eth/downloader, trie: reset fast-failure on progress
2016-11-01 13:31:12 +02:00
Péter Szilágyi
61acd18e79
Merge pull request #3218 from kenji-isuntv/develop
...
internal/debug, internal/ethapi, rpc, swarm/storage: go fmt
2016-11-01 13:16:22 +02:00
Péter Szilágyi
e1b4acfb6e
eth/downloader: clear pending requests when switching trie root
2016-11-01 12:53:33 +02:00
Kenji Siu
d85d3c74db
internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"
2016-11-01 18:40:36 +08:00
Péter Szilágyi
8ecee175f2
eth/downloader: lower a state sync log level (users freak out)
2016-10-31 18:28:03 +02:00
Péter Szilágyi
8b10617bba
eth/downloader: reduce fast sync block requirements, fix test
2016-10-31 17:26:44 +02:00
Péter Szilágyi
90b16a3e85
core/state, eth/downloader, trie: reset fast-failure on progress
2016-10-31 14:19:14 +02:00
Jeffrey Wilcke
4dc1fb923a
Merge pull request #3064 from pirapira/limit_struct_logs
...
core/vm: add limit option to LogConfig
2016-10-31 12:07:43 +01:00
Péter Szilágyi
b8dec948d4
Merge pull request #3215 from fjl/weird-files
...
all: remove weird files
2016-10-30 12:25:00 +02:00
Felix Lange
87670a7ac1
all: remove weird files
2016-10-30 11:02:34 +01:00
Péter Szilágyi
63d293cdbe
Merge pull request #3195 from karalabe/fix-testnet-fastsync
...
cmd/utils, core, params: explicitly pick reprice fork for fast sync
2016-10-29 17:21:26 +03:00
Péter Szilágyi
f0dbec0c93
cmd, params: only set default fork configs for test and mainnet
2016-10-29 17:07:07 +03:00
gluk256
79789af2e7
whisper: project restructured, version 5 introduced ( #3022 )
...
whisper: project restructured, version 5 introduced
This commits adds a draft version of the new shh v5 protocol.
The new version is not on by default, --shh still selects version 2.
2016-10-29 14:11:37 +02:00
Péter Szilágyi
8639b0fae9
cmd/utils, core, params: explicitly pick reprice fork for fast sync
2016-10-29 12:10:00 +03:00
Nick Johnson
00665a0b72
cmd/evm: Allow stdin and files as sources of bytecode ( #3172 )
...
* cmd/evm: Allow stdin and files as sources of bytecode
* cmd/evm: Print and exit instead of panicing
* cmd/evm: fix compile and vet errors
2016-10-29 12:07:38 +03:00
bas-vk
b59c8399fb
internal/ethapi: add personal_sign and fix eth_sign to hash message ( #2940 )
...
This commit includes several API changes:
- The behavior of eth_sign is changed. It now accepts an arbitrary
message, prepends the well-known string
\x19Ethereum Signed Message:\n<length of message>
hashes the result using keccak256 and calculates the signature of
the hash. This breaks backwards compatability!
- personal_sign(hash, address [, password]) is added. It has the same
semantics as eth_sign but also accepts a password. The private key
used to sign the hash is temporarily unlocked in the scope of the
request.
- personal_recover(message, signature) is added and returns the
address for the account that created a signature.
2016-10-28 21:25:49 +02:00
Péter Szilágyi
289b30715d
Godeps, vendor: convert dependency management to trash ( #3198 )
...
This commit converts the dependency management from Godeps to the vendor
folder, also switching the tool from godep to trash. Since the upstream tool
lacks a few features proposed via a few PRs, until those PRs are merged in
(if), use github.com/karalabe/trash.
You can update dependencies via trash --update.
All dependencies have been updated to their latest version.
Parts of the build system are reworked to drop old notions of Godeps and
invocation of the go vet command so that it doesn't run against the vendor
folder, as that will just blow up during vetting.
The conversion drops OpenCL (and hence GPU mining support) from ethash and our
codebase. The short reasoning is that there's noone to maintain and having
opencl libs in our deps messes up builds as go install ./... tries to build
them, failing with unsatisfied link errors for the C OpenCL deps.
golang.org/x/net/context is not vendored in. We expect it to be fetched by the
user (i.e. using go get). To keep ci.go builds reproducible the package is
"vendored" in build/_vendor.
2016-10-28 19:05:01 +02:00
Steven Roose
7770304576
ethclient: changed TransactionByHash to only pass one argument to api method ( #3209 )
...
Fixes #3203
2016-10-27 23:10:24 +02:00
Péter Szilágyi
890ffa05f8
Merge pull request #3189 from fjl/leveldb-update
...
Update goleveldb, add debug.chaindbCompact
2016-10-21 19:14:11 +03:00
Hao Bryan Cheng
89014b4524
core/vm: Ignore EnableJit ChainConfig setting ( #3166 )
2016-10-21 17:35:03 +02:00
Péter Szilágyi
f8608a5228
trie: while fast syncing, don't keep trie nodes in memory ( #3186 )
2016-10-21 17:34:17 +02:00
Péter Szilágyi
437c1e40b2
Merge pull request #3185 from karalabe/fix-log-race
...
eth/downloader: fix a data race in a log output
2016-10-21 13:25:38 +03:00
Péter Szilágyi
53db80da89
eth/downloader: fix a data race in a log output
2016-10-21 13:09:27 +03:00
Péter Szilágyi
28cc3cc960
Merge pull request #3184 from karalabe/import-gas-use
...
cmd/geth, code, eth/downloader: tune import logs and mem stats
2016-10-21 12:37:59 +03:00
Péter Szilágyi
1291778032
cmd/geth, code, eth/downloader: tune import logs and mem stats
2016-10-21 12:23:39 +03:00
Felix Lange
b930baa580
Godeps: update github.com/syndtr/goleveldb to 6b4daa5362
2016-10-20 14:56:34 +02:00
Felix Lange
66ee2dec53
internal/ethapi: add debug.chaindbCompact
2016-10-20 14:37:01 +02:00
Péter Szilágyi
f2ae2f7eef
Merge pull request #3176 from karalabe/trie-stats-report
...
cmd/geth, trie: report on trie cache unloads, also add debug log
2016-10-19 17:35:58 +03:00
Péter Szilágyi
88a593d559
cmd/geth, trie: report on trie cache unloads, also add debug log
2016-10-19 17:31:19 +03:00
Felix Lange
5d9bb0a050
trie: add metric to track cache unloading ( #3175 )
2016-10-19 16:07:19 +02:00
Péter Szilágyi
8048f4d4f6
Merge pull request #3173 from karalabe/parametrized-trie-cache-get
...
cmd, core/state: allow configurable trie cache generations
2016-10-19 16:42:54 +03:00
Felix Lange
d48e6ae66f
trie: make the cache miss counter a real metric
2016-10-19 15:22:37 +02:00
Péter Szilágyi
4f46bd19d0
cmd, core/state: allow configurable trie cache generations
2016-10-19 14:55:13 +03:00
Jeffrey Wilcke
ca49510e6d
Merge pull request #3168 from benjaminbrent/develop
...
core/vm: fix GASPRICE string (resolves #2553 )
2016-10-19 13:36:13 +02:00
Jeffrey Wilcke
25ac04a444
Merge pull request #3153 from fjl/trie-unload-fix
...
trie: improve cache unloading mechanism
2016-10-19 13:35:49 +02:00
Péter Szilágyi
8e52c2e754
Merge pull request #3161 from karalabe/trie-cache-counters
...
cmd/geth, trie: track and report trie cache misses
2016-10-19 14:29:24 +03:00
Péter Szilágyi
2bb5ec1e41
cmd/geth, trie: track and report trie cache misses
2016-10-19 14:12:35 +03:00
Benjamin Brent
55522373fd
core/vm: fix GASPRICE string ( resolves #2553 )
2016-10-19 15:55:34 +11:00
Nick Johnson
c9471e7782
miner: copy pending state before handing it to callers ( #3162 )
...
The pending state was not copied while not mining, leading to a data race.
2016-10-18 22:34:37 +02:00
Jeffrey Wilcke
5b262ff5ab
Merge pull request #3156 from holiman/metrics-blocks
...
core: Add block processing time metric collection
2016-10-18 13:26:31 +02:00
Péter Szilágyi
e8d0538a00
Merge pull request #3160 from karalabe/import-database-stats
...
cmd/geth: compact and print database stats after an import
2016-10-18 14:09:02 +03:00
Péter Szilágyi
a1c63e8be6
cmd/geth: compact and print database stats after an import
2016-10-18 13:45:16 +03:00
Péter Szilágyi
a64b1b4375
Merge pull request #3158 from karalabe/pretty-print-imports
...
common, core, eth/downloader: adjust import log formatting
2016-10-18 13:29:06 +03:00
Péter Szilágyi
64500ab0fa
common, core, eth/downloader: adjust import log formatting
2016-10-18 13:16:36 +03:00
Martin Holst Swende
00b853418e
core: Add block processing time metric collection
2016-10-18 09:29:50 +02:00
Felix Lange
8d56bf5ceb
trie: ensure dirty flag is unset for embedded child nodes
...
This was caught by the new invariant check.
2016-10-18 04:57:47 +02:00
Felix Lange
44f419ec0f
core/state: bump trie cache values slightly
2016-10-18 04:57:47 +02:00
Felix Lange
177cab5fe7
trie: ensure resolved nodes stay loaded
...
Commit 40cdcf1183 broke the optimisation which kept nodes resolved
during Get in the trie. The decoder assigned cache generation 0
unconditionally, causing resolved nodes to get flushed on Commit.
This commit fixes it and adds two tests.
2016-10-18 04:57:47 +02:00
Felix Lange
187d6a66a5
trie: avoid loading the root node twice
...
New checks whether the root node is present by loading it from the
database. Keep the node around instead of discarding it.
2016-10-18 04:57:47 +02:00
Felix Lange
6952fe3a5c
Merge pull request #3100 from kobigurk/develop
...
internal/ethapi, internal/web3ext: adds raw tx retrieval methods
2016-10-17 16:55:28 +02:00
Péter Szilágyi
b19b7c39ac
Merge pull request #3142 from fjl/trie-sync-fix
...
trie: fix regression that linked all downloaded nodes together
2016-10-15 10:58:54 +03:00
Jeffrey Wilcke
9276c4e163
Merge pull request #3141 from obscuren/reprice-block-number
...
params: set reprice block number to 2463000
2016-10-15 00:50:45 +02:00
Felix Lange
2cd7a0395d
trie: fix regression that linked all downloaded nodes together
...
The trie sync code links subtries using pointers into node structs.
Since commit 40cdcf1183 nodes are no longer copied when unpacking from
an interface value, causing all nodes to get linked up as the sync
progresses. Fix it by breaking the pointer chain with an explicit copy.
2016-10-15 00:42:52 +02:00
Jeffrey Wilcke
f2be249385
params: set reprice block number to 2463000
2016-10-15 00:36:49 +02:00
Péter Szilágyi
81b01f1c2b
Merge pull request #3111 from obscuren/gas-price-fork
...
core, core/vm: added gas price variance table (EIP #150 )
2016-10-14 19:32:11 +03:00
Péter Szilágyi
a4d9e63d12
Merge pull request #3138 from karalabe/txpool-pending-limits
...
core: add global (soft) limits on the pending transactions
2016-10-14 19:10:55 +03:00
Jeffrey Wilcke
64af2aafda
core, core/vm: added gas price variance table
...
This implements 1b & 1c of EIP150 by adding a new GasTable which must be
returned from the RuleSet config method. This table is used to determine
the gas prices for the current epoch.
Please note that when the CreateBySuicide gas price is set it is assumed
that we're in the new epoch phase.
In addition this PR will serve as temporary basis while refactorisation
in being done in the EVM64 PR, which will substentially overhaul the gas
price code.
2016-10-14 18:09:17 +02:00
Felix Lange
40cdcf1183
trie, core/state: improve memory usage and performance ( #3135 )
...
* trie: store nodes as pointers
This avoids memory copies when unwrapping node interface values.
name old time/op new time/op delta
Get 388ns ± 8% 215ns ± 2% -44.56% (p=0.000 n=15+15)
GetDB 363ns ± 3% 202ns ± 2% -44.21% (p=0.000 n=15+15)
UpdateBE 1.57µs ± 2% 1.29µs ± 3% -17.80% (p=0.000 n=13+15)
UpdateLE 1.92µs ± 2% 1.61µs ± 2% -16.25% (p=0.000 n=14+14)
HashBE 2.16µs ± 6% 2.18µs ± 6% ~ (p=0.436 n=15+15)
HashLE 7.43µs ± 3% 7.21µs ± 3% -2.96% (p=0.000 n=15+13)
* trie: close temporary databases in GetDB benchmark
* trie: don't keep []byte from DB load around
Nodes decoded from a DB load kept hashes and values as sub-slices of
the DB value. This can be a problem because loading from leveldb often
returns []byte with a cap that's larger than necessary, increasing
memory usage.
* trie: unload old cached nodes
* trie, core/state: use cache unloading for account trie
* trie: use explicit private flags (fixes Go 1.5 reflection issue).
* trie: fixup cachegen overflow at request of nick
* core/state: rename journal size constant
2016-10-14 19:04:33 +03:00
Péter Szilágyi
182d9cb752
core: add global (soft) limits on the pending transactions
2016-10-14 15:57:58 +03:00
Péter Szilágyi
c2ddfb343a
Merge pull request #3136 from Arachnid/expvar
...
metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexp
2016-10-14 15:01:59 +03:00
Nick Johnson
9e9bfc4e26
metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexp
2016-10-14 12:29:08 +01:00
Viktor Trón
f63c6c008f
Merge pull request #3133 from ethersphere/http-fix
...
swarm: fix http API's last problems
2016-10-13 12:43:57 -07:00
Daniel A. Nagy
eb2f01aee8
swarm/storage: Allow EOF at the end of the reader in the chunker. Handle the case when Read returns less than length of target slice
2016-10-13 21:23:28 +02:00
Felix Lange
30fb5c3e81
Merge pull request #3108 from homotopycolimit/FixChunkerWithBrokenReader
...
swarm/storage: fixes for tree chunker in the context of a broken reader
2016-10-13 19:45:29 +02:00
Felix Lange
c780901cd5
Merge pull request #3120 from obscuren/reporter-fix
...
core: fixed import reporter
2016-10-12 20:14:19 +02:00
Jeffrey Wilcke
ca419f3cd8
core: fixed import reporter
2016-10-11 00:16:08 +02:00
aron
a45421baaf
swarm/storage: fix chunker when reader is broken
...
* brokenLimitedReader gives error after half size
* TestRandomBrokenData tests chunker with broken reader
* add blocking quitC (instead of errC) and use errC only for errors
* don't close chunkC in tester Split,
* use quitC to quit chunk storage loop
2016-10-10 23:34:44 +02:00
Felix Lange
be6a3696a9
Merge pull request #3104 from fjl/core-import-log
...
core: print import stats more often
2016-10-10 20:38:27 +02:00
Felix Lange
7943ecb812
Merge pull request #3117 from fjl/txpool-low-limit
...
core: lower transaction pool max queue limit
2016-10-10 16:06:10 +02:00
Felix Lange
16d8397e30
core: lower transaction pool max queue limit
2016-10-10 15:32:06 +02:00
Kobi Gurkan
1a6682c21d
internal/ethapi, internal/web3ext: adds raw tx retrieval methods
2016-10-10 12:57:15 +03:00
Felix Lange
82b14a05f2
eth: move "timed out DAO fork check, dropping" to debug level
2016-10-07 21:03:38 +02:00
Felix Lange
e66b158f0b
core: print import stats more often
...
If geth is busy importing 2048 heavy blocks it can take a while before
it prints anything. This change ensures that a message gets printed
every 8s.
2016-10-07 21:03:38 +02:00
Felix Lange
c88e435724
Merge pull request #3088 from bas-vk/rpc-block-output
...
core/types: renamed receiptRoot to receiptsRoot
2016-10-06 18:32:27 +02:00
Felix Lange
eeb2a1a6e3
Merge pull request #3094 from fjl/tests-update
...
tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1
2016-10-06 16:19:53 +02:00
Jeffrey Wilcke
7335a70a02
Merge pull request #3092 from fjl/state-journal
...
core/state: implement reverts by journaling all changes
2016-10-06 16:14:22 +02:00
Felix Lange
1b7b2ba216
tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1
...
Two new tests are skipped because they're buggy. Making some newer
random state tests work required implementing the 'compressed return
value encoding'.
2016-10-06 15:36:21 +02:00
Felix Lange
3c836dd71b
core/state: optimize GetState
...
There is no need to use the reflection-based decoder to decode []byte.
2016-10-06 15:32:17 +02:00
Felix Lange
90fce8bfa6
core/state: rename Delete/IsDeleted to Suicide/HasSuicided
...
The delete/remove naming has caused endless confusion in the past.
2016-10-06 15:32:17 +02:00
Felix Lange
1f1ea18b54
core/state: implement reverts by journaling all changes
...
This commit replaces the deep-copy based state revert mechanism with a
linear complexity journal. This commit also hides several internal
StateDB methods to limit the number of ways in which calling code can
use the journal incorrectly.
As usual consultation and bug fixes to the initial implementation were
provided by @karalabe, @obscuren and @Arachnid. Thank you!
2016-10-06 15:32:16 +02:00
Jeffrey Wilcke
07caa3fccd
Merge pull request #3090 from karalabe/fix-eth-header-indexing
...
eth: monitor malicious header retrieval requests
2016-10-06 13:52:08 +02:00
Felix Lange
83fc6fdb34
Merge pull request #3089 from bas-vk/resend
...
internal/ethapi: bugfix gas price and limit swapped in eth_resend
2016-10-06 01:42:42 +02:00
Péter Szilágyi
2acb9a6ea7
Merge pull request #3081 from ethernomad/cors-max-age
...
rpc: set CORS Max-Age to reduce preflight OPTIONS requests
2016-10-05 16:47:10 +03:00
Péter Szilágyi
e482b5694f
eth: monitor malicious header retrieval requests
2016-10-05 16:34:07 +03:00
Bas van Kervel
6c959207db
internal/ethapi: bugfix gas price and limit swapped in eth_resend
2016-10-05 14:21:03 +02:00
Bas van Kervel
71e8ae01b8
core/types: renamed receiptRoot to receiptsRoot
2016-10-05 12:24:42 +02:00
Felix Lange
a7cc3248fe
Merge pull request #3082 from fjl/build-fix-tag-appveyor
...
internal/build: fix git tag env variable for AppVeyor
2016-10-03 20:28:04 +02:00
Felix Lange
82e09c17a9
internal/build: fix git tag env variable for AppVeyor
2016-10-03 17:19:43 +02:00
Jonathan Brown
ae341b31c8
rpc: set CORS Max-Age to reduce preflight OPTIONS requests
2016-10-03 20:24:58 +07:00
Péter Szilágyi
ab7adb0027
Merge pull request #3073 from fjl/build-git17
...
internal/build: use less edgy command to get the branch name
2016-10-03 11:34:28 +03:00
Felix Lange
b4b5921dd0
internal/build: use less edgy command to get the branch name
2016-10-03 10:22:14 +02:00
Péter Szilágyi
c683e4aaa2
Merge pull request #3072 from karalabe/state-storage-dirty
...
core/state: track dirty state entries for each object
2016-10-03 11:15:48 +03:00
Péter Szilágyi
b7159818f9
core/state: track dirty state entries for each object
2016-10-03 10:48:01 +03:00
Péter Szilágyi
d4b55fc5b2
Merge pull request #3066 from fjl/build-env
...
build: improve debian packaging
2016-10-02 14:44:30 +03:00
Felix Lange
4f7627972e
build: improve debian packaging
...
This commit tweaks the debian packaging tool:
* All build environment metadata can now be overriden on the command
line. This allows testing the CI build behaviour locally.
* -unstable packages now actually contain the binaries (oops)
* packages use Go 1.7 to build
* archiving is skipped for PR builds
2016-10-02 13:08:56 +02:00
Felix Lange
920e1ccfe0
Merge pull request #3068 from fjl/update-sha3
...
crypto/sha3: update from golang.org/x/crypto/sha3 a 80b25ed4
2016-10-01 21:45:29 +02:00
Felix Lange
54ea317375
crypto/sha3: update from golang.org/x/crypto/sha3 a 80b25ed4
...
This pulls in the assembly implementation of keccakf1600 for amd64.
2016-10-01 21:26:43 +02:00
Péter Szilágyi
0731b44809
Merge pull request #3067 from karalabe/vm-avoid-hashing
...
cmd, core, internal, light, tests: avoid hashing the code in the VM
2016-10-01 16:58:49 +03:00
Péter Szilágyi
cb84e3f029
cmd, core, internal, light, tests: avoid hashing the code in the VM
2016-10-01 16:01:58 +03:00
Yoichi Hirai
bb6115b737
vm, ethapi: add limit option to traceTransaction
...
that specifies the maximum number of elements in the `structLogs`
output. This option is useful for debugging a transaction that
involves a large number of repetition.
For example,
```
debug.traceTransaction(tx, {disableStorage: true, limit: 2})
```
shows at most the first two steps in the `structLogs`.
2016-09-30 17:36:00 +02:00
Péter Szilágyi
d8715fba1a
Merge pull request #3062 from fjl/trie-delete-bug
...
trie: fix delete bug for values contained in fullNode
2016-09-30 16:44:00 +03:00
Felix Lange
b4cc8cbac4
Merge pull request #3032 from Gustav-Simonsson/keystore_padding
...
accounts: left pad keybytes-to-encrypt
2016-09-30 11:30:54 +02:00
Felix Lange
c3a77d6268
trie: fix delete bug for values contained in fullNode
...
Delete crashed if a fullNode contained a valueNode directly. This bug is
very unlikely to occur with SecureTrie, but can happen with regular
tries. This commit also introduces a randomised test which triggers all
trie operations, which should prevent such bugs in the future.
Credit for finding this bug goes to Github user @rjl493456442.
2016-09-29 22:53:59 +02:00
Felix Lange
ba8c4c6b1a
trie: remove dependency on package crypto
...
Package crypto needs cgo, which is inconvenient for some build
configurations.
2016-09-29 22:23:24 +02:00
Felix Lange
44bc2e80dd
Merge pull request #2914 from fjl/node-coinhabit
...
cmd/utils, node: make datadir reusable for bzzd
2016-09-29 14:24:37 +02:00
Péter Szilágyi
4e8cec05ab
Merge pull request #3048 from sandakersmann/patch-2
...
README: Changed http:// to https:// on some links
2016-09-29 10:29:53 +03:00
ken10100147
afecb93e2e
p2p/nat: fix parameter order for AddMapping
2016-09-28 12:11:58 +02:00
Péter Szilágyi
437c3863f1
Merge pull request #3053 from karalabe/fjl-state-trie-journal
...
core, trie: replace state caches with trie journal
2016-09-28 12:53:54 +03:00
Péter Szilágyi
710435b51b
core, eth, trie: reuse trie journals in all our code
2016-09-28 11:27:31 +03:00
Felix Lange
cd791bd855
core, trie: replace state caches with trie journal
2016-09-28 11:27:28 +03:00
Gustav Simonsson
7cc6b801e0
accounts: left pad keybytes-to-encrypt, add 30/31 byte keys tests
2016-09-27 13:07:33 -04:00
sandakersmann
5a3844981b
README: Changed http:// to https:// on some links
...
Changed http:// to https:// on some links in README.md
2016-09-27 08:48:55 +02:00
Felix Lange
863d166c7b
Merge pull request #3043 from fjl/windows-fix-fatalf
...
cmd/utils: don't check for stderr redirect on windows
2016-09-26 18:29:56 +02:00
Felix Lange
b04219fdbb
cmd/utils: don't check for stderr redirect on windows
...
The redirect check did not work on Go 1.6 and below because Stat
returned an error for stdout and stderr. In Go 1.7 Stat works on stdout
but doesn't return anything meaningful, causing cmd/geth test failures
because the message is printed to stderr only. Fix it by printing to
stdout only.
2016-09-26 17:35:19 +02:00
Péter Szilágyi
61734cc7ae
Merge pull request #3041 from fjl/build-less-parallel
...
build: limit test concurrency
2016-09-26 16:31:10 +03:00
Felix Lange
0951524ca2
travis.yml: remove go 1.4 builder
2016-09-26 13:48:15 +02:00
Felix Lange
b0a6b979a3
build: limit test concurrency
...
TravisCI and AppVeyor run the tests in very slow VMs.
Some of our tests can't cope with that. Running less tests
in parallel should make them somewhat less flakey.
2016-09-26 13:41:18 +02:00
Péter Szilágyi
7f2b077da4
Merge pull request #3040 from karalabe/dummy
...
accounts/abi: fix typo in the comment (dummy commit)
2016-09-26 13:42:15 +03:00
Péter Szilágyi
06ac31cf1a
accounts/abi: fix typo in the comment (dummy commit)
2016-09-26 13:40:28 +03:00
Péter Szilágyi
2e14aff80f
Merge pull request #3037 from karalabe/state-caching
...
State caching
2016-09-26 11:20:47 +03:00
Felix Lange
a59a93f476
core/state: track all accounts in canon state
...
This change introduces a global, per-state cache that keeps account data
in the canon state. Thanks to @karalabe for lots of fixes.
2016-09-26 10:09:52 +02:00
Péter Szilágyi
e859f36967
Merge pull request #3035 from Gustav-Simonsson/zero_value_transfer_noop
...
core/state: short-circuit balance change if zero value
2016-09-26 08:47:20 +03:00
Gustav Simonsson
25ed5fedda
core/state: short-circuit balance change if zero value
2016-09-26 01:26:54 -04:00
Felix Lange
3778f1bf77
Merge pull request #3009 from Gustav-Simonsson/fix_oom_in_light
...
light: fix memory expansion bug (same as fix for core/state)
2016-09-22 13:11:59 +02:00
Felix Lange
f85f46461f
Merge pull request #3021 from bas-vk/ethclient-logs
...
ethclient: bugfix retrieving logs
2016-09-21 15:08:14 +02:00
Bas van Kervel
5bb517355e
ethclient: bugfix retrieving logs
2016-09-21 14:10:11 +02:00
Gustav Simonsson
22eea17b06
light: fix memory expansion bug (same as fix for core/state)
2016-09-19 15:26:55 -04:00
Felix Lange
c8d6efd602
Merge pull request #3010 from Gustav-Simonsson/remove_unused_initcode_field
...
core/state, light: remove unused StateObject.initCode
2016-09-19 09:58:14 +02:00
Gustav Simonsson
b6b17e5648
core/state, light: remove unused StateObject.initCode
2016-09-19 02:16:58 -04:00
Péter Szilágyi
88b012ad3b
Merge pull request #3006 from Arachnid/patch
...
core/state: Fix memory expansion bug by not copying clean objects
2016-09-19 04:20:14 +03:00
Nick Johnson
581b320b9d
core/state: Fix memory expansion bug by not copying clean objects
2016-09-19 08:57:08 +08:00
Felix Lange
b42a5b118f
common, node: move datadir defaults into package node
2016-09-16 15:24:31 +02:00
Felix Lange
eeb322ae64
node: ensure datadir can be co-inhabited by different instances
...
This change ensures that nodes started with different Name but same
DataDir values don't use the same nodekey and IPC socket.
2016-09-16 15:24:31 +02:00
Felix Lange
52ede09b17
ethdb: add accessor for database directory
2016-09-16 15:24:31 +02:00
Felix Lange
f5c432bcab
p2p/nat: delay auto discovery until first use
...
Port mapper auto discovery used to run immediately after parsing the
--nat flag, giving it a slight performance boost. But this is becoming
inconvenient because we create node.Node for all geth operations
including account management and bare chain interaction. Delay
autodiscovery until the first use instead, which avoids any network
interaction until the node is actually started.
2016-09-16 11:06:52 +02:00
Péter Szilágyi
7c12e8ea44
Merge pull request #2999 from karalabe/bury-blockchain-version
...
cmd, eth: drop the blockchain version from cli/eth configs
2016-09-15 14:41:10 +03:00
Péter Szilágyi
30860491ba
cmd, eth: drop the blockchain version from cli/eth configs
2016-09-15 14:09:47 +03:00
Felix Lange
0f6f83a709
Merge pull request #2983 from bas-vk/txindex
...
miner: set tx index logs
2016-09-14 21:05:17 +02:00
Bas van Kervel
e3fe634f99
miner: set tx index logs
2016-09-12 11:33:25 +02:00
Péter Szilágyi
dc3e969e14
Merge pull request #2973 from bas-vk/filterid
...
rpc: format filter ID according to spec for quantities
2016-09-12 11:55:15 +03:00
bas-vk
b7f6404168
Merge pull request #2984 from karalabe/fix-head-sub
...
core/types, ethclient: fix broken subscriptions
2016-09-09 16:20:52 +02:00
Péter Szilágyi
b6b5ec8f75
core/types: add core type marshal methods too
2016-09-08 18:16:53 +03:00
Péter Szilágyi
ca37730c9d
ethclient: fix new block->header subscription endpoint
2016-09-08 17:17:55 +03:00
Péter Szilágyi
6fb8ae2bd6
Merge pull request #2979 from karalabe/ethclient-sync-api
...
ethereum, ethclient: add SyncProgress API endpoint
2016-09-06 13:59:41 +03:00
Péter Szilágyi
2924fdfcf7
ethereum, ethclient: add SyncProgress API endpoint
2016-09-06 13:41:43 +03:00
Felix Lange
eac390f289
Merge pull request #2976 from fjl/utils-version
...
cmd/evm, cmd/geth, cmd/utils: move version handling to cmd/utils
2016-09-05 14:09:45 +02:00
Felix Lange
de54273f51
cmd/geth: fix port clash in genesis test
2016-09-05 13:24:11 +02:00
Felix Lange
6b727c0440
cmd/evm, cmd/geth, cmd/utils: move version handling to cmd/utils
2016-09-05 13:24:11 +02:00
Péter Szilágyi
2c6be49d20
Merge pull request #2949 from elliots/fix/#2948
...
miner: Prevent attempts to close nil quit channel in agent (fixes #2948 )
2016-09-02 14:45:15 +03:00
Jeffrey Wilcke
a42b7355f4
Merge pull request #2742 from karalabe/tx-spam-protection
...
Transaction pool optimizations
2016-09-02 13:44:23 +02:00
Péter Szilágyi
b4a5251391
core: abstract out a sorted transaction hash map
2016-09-02 14:15:40 +03:00
Péter Szilágyi
a183ea29f9
core: add upper bound on the queued transctions
2016-09-02 14:15:40 +03:00
Péter Szilágyi
affffb39b3
core/types, miner: switch over to the grouped tx sets
2016-09-02 14:12:03 +03:00
Péter Szilágyi
0ef327bbee
core, eth, internal, miner: optimize txpool for quick ops
2016-09-02 14:12:03 +03:00
Péter Szilágyi
795b70423e
core, eth, miner: only retain 1 tx/nonce, remove bad ones
2016-09-02 14:12:03 +03:00
Felix Lange
49227f65ff
Merge pull request #2972 from Arachnid/ens
...
contracts/ens: Replace setOwner with setSubnodeOwner per EIP137
2016-09-01 15:27:45 +02:00
Nick Johnson
a386b4c983
contracts/ens: Replace setOwner with setSubnodeOwner in accordance with EIP137
2016-09-01 12:40:15 +01:00
Felix Lange
5cb3fa2f89
Merge pull request #2965 from fjl/swarm-merge
...
swarm: plan bee for content storage and distribution on web3
2016-09-01 12:10:24 +02:00
Bas van Kervel
43d716280e
rpc: format filter ID according to spec for quantities
2016-09-01 11:50:13 +02:00
Felix Lange
cc6170d7fc
Merge pull request #2918 from hypergig/patch-2
...
Small docker run example for main README
2016-08-31 22:51:09 +02:00
ΞTHΞЯSPHΞЯΞ
4d300e4dec
swarm: plan bee for content storage and distribution on web3
...
This change imports the Swarm protocol codebase. Compared to the 'swarm'
branch, a few mostly cosmetic changes had to be made:
* The various redundant log message prefixes are gone.
* All files now have LGPLv3 license headers.
* Minor code changes were needed to please go vet and make the tests
pass on Windows.
* Further changes were required to adapt to the go-ethereum develop
branch and its new Go APIs.
Some code has not (yet) been brought over:
* swarm/cmd/bzzhash: will reappear as cmd/bzzhash later
* swarm/cmd/bzzup.sh: will be reimplemented in cmd/bzzup
* swarm/cmd/makegenesis: will reappear somehow
* swarm/examples/album: will move to a separate repository
* swarm/examples/filemanager: ditto
* swarm/examples/files: will not be merged
* swarm/test/*: will not be merged
* swarm/services/swear: will reappear as contracts/swear when needed
2016-08-31 16:19:40 +02:00
Felix Lange
1f58b2d084
Merge pull request #2962 from fjl/release-move
...
contracts/release: move package release to contracts/
2016-08-31 15:32:13 +02:00
Felix Lange
6903fa2d47
Merge pull request #2963 from fjl/ens-solc-0.3.6
...
contracts/ens: regenerate binding with solc v0.3.6
2016-08-31 09:28:18 +02:00
Felix Lange
319ae90184
Merge pull request #2964 from nagydani/develop
...
contracts/chequebook: fix possible reentrancy bug in chequebook contract
2016-08-31 01:29:01 +02:00
Daniel A. Nagy
7b884e0075
contracts/chequebook/contract: fix possible reentrancy bug in chequebook.sol
2016-08-30 18:16:49 +02:00
Felix Lange
3e7b4ae0c3
Merge pull request #2967 from fjl/godeps-update
...
Godeps: update golang.org/x/...
2016-08-30 12:43:10 +02:00
Felix Lange
3b75d0ce23
Godeps: update golang.org/x/...
2016-08-30 12:20:34 +02:00
Felix Lange
48807de305
contracts/ens: regenerate binding with solc v0.3.6
2016-08-29 19:34:44 +02:00
Felix Lange
1d7d1a3499
contracts/release: move package release to contracts/
...
This change also deletes generator.go, moving the only interesting line
in it into release.go. The binding has been regenerated with abigen from
develop and solc v0.3.6.
2016-08-29 19:25:05 +02:00
Felix Lange
969008dbb0
Merge pull request #2952 from Arachnid/ens
...
contracts/ens: Add ENS contract binding
2016-08-29 19:09:35 +02:00
Nick Johnson
6976e602f6
contracts/ens: Add ENS contract binding
2016-08-29 17:30:17 +01:00
Felix Lange
3b087e03ea
Merge pull request #2956 from fjl/chequebook
...
contracts/chequebook: add chequebook contract wrapper
2016-08-29 14:06:12 +02:00
Viktor Trón
6c8b023298
contracts/chequebook: add chequebook contract wrapper
...
The wrapper code is adapted from the swarm/services/chequebook package
with the following mostly cosmetic changes:
* The code now uses the new Go API interfaces to query balances. Some
minor functional changes were required to make this work.
* The package no longer depends on swarm/services/swap/swap. References
to swap.Promise are replaced by interface{}, the base type of Promise.
This is temporary.
* The contract wrapper has been regenerated with latest abigen
and solc v0.3.6.
* There is a new generator that creates the 'deployed code' variable.
* Documentation comments now follow the recommended godoc style.
* [CHEQUEBOOK] log prefixes are gone.
* LGPL license headers have been added to all files.
2016-08-29 13:39:25 +02:00
gregg dourgarian
8dbf59fec5
common,internal: typo/misspelling fixes ( #2953 )
2016-08-27 15:05:09 +03:00
☃ Elliot Shepherd
ac0f8b81ae
miner: Move CpuAgent channel creation from Start() to initialization ( fixes #2948 )
...
Also remove the now un-needed mutex locking in Start() and Stop()
2016-08-26 00:12:17 +10:00
Péter Szilágyi
5fc032a9d1
Merge pull request #2930 from fjl/ethclient
...
Stable Go API, part 1
2016-08-25 16:20:38 +03:00
Felix Lange
806e3cd075
Merge pull request #2943 from Arachnid/tracing
...
internal/ethapi: Fix bug in opCodeWrapper usage
2016-08-24 18:20:26 +02:00
Nick Johnson
8923325d5c
internal/ethapi: Fix bug in opCodeWrapper usage
2016-08-24 16:10:29 +01:00
Felix Lange
a2b2c8adc9
Merge pull request #2941 from Arachnid/tracing
...
internal/ethapi: Improve tracer error reporting and serialization
2016-08-24 16:10:51 +02:00
Nick Johnson
d20238c2a7
internal/ethapi: Improve tracer error reporting and serialization
2016-08-24 13:17:55 +01:00
Stein Dekker
4ce83bf57b
eth/fetcher: small typo fix ( #2932 )
2016-08-23 18:23:34 +03:00
Péter Szilágyi
b500953425
Merge pull request #2929 from Arachnid/tracing
...
core/vm, eth: Add support for javascript trace functions
2016-08-23 18:22:20 +03:00
Nick Johnson
2f99720901
core/vm, eth: Add support for javascript trace functions
2016-08-23 15:06:39 +01:00
Hellsegga
6bd9008025
cmd/geth: set correct initial nonce on testnet for import/init subcommands ( #2924 )
2016-08-23 11:36:40 +03:00
Felix Lange
c97df052a9
accounts/abi/bind: add utilities for waiting on transactions
...
The need for these functions comes up in code that actually deploys and
uses contracts. As of this commit, they can be used with both
SimulatedBackend and ethclient.
SimulatedBackend gains some additional methods in the process and is now
safe for concurrent use.
2016-08-22 23:20:13 +02:00
Felix Lange
7d9c5e0f7d
Merge pull request #2928 from obscuren/remove-dao-message
...
cmd/utils: removed DAO oppose / support message
2016-08-22 15:33:00 +02:00
Felix Lange
d62d5fe59a
accounts/abi/bind: use ethereum interfaces
...
In this commit, contract bindings and their backend start using the
Ethereum Go API interfaces offered by ethclient. This makes ethclient a
suitable replacement for the old remote backend and gets us one step
closer to the final stable Go API that is planned for go-ethereum 1.5.
The changes in detail:
* Pending state is optional for read only contract bindings.
BoundContract attempts to discover the Pending* methods via an
interface assertion. There are a couple of advantages to this:
ContractCaller is just two methods and can be implemented on top of
pretty much anything that provides Ethereum data. Since the backend
interfaces are now disjoint, ContractBackend can simply be declared as
a union of the reader and writer side.
* Caching of HasCode is removed. The caching could go wrong in case of
chain reorganisations and removing it simplifies the code a lot.
We'll figure out a performant way of providing ErrNoCode before the
1.5 release.
* BoundContract now ensures that the backend receives a non-nil context
with every call.
2016-08-22 14:01:28 +02:00
Péter Szilágyi
d8cec35b10
Merge pull request #2927 from obscuren/license
...
cmd/geth: added copyright and license information
2016-08-22 12:38:05 +03:00
Péter Szilágyi
f81cff539a
Merge pull request #2923 from Arachnid/tracing
...
core: Refactor tracing to make Tracer the main interface
2016-08-22 12:31:47 +03:00
Jeffrey Wilcke
5fff491bbd
cmd/geth: added copyright and license information
...
As per GNU GPL requirement I've added the copyright and the license
information as a subcommand as well as a copyright notice when
displaying the help command.
2016-08-22 11:17:23 +02:00
Nick Johnson
781915f183
core/vm: Refactor tracing to make Tracer the main interface
...
This CL makes several refactors:
- Define a Tracer interface, implementing the `CaptureState` method
- Add the VM environment as the first argument of
`Tracer.CaptureState`
- Rename existing functionality `StructLogger` an make it an
implementation of `Tracer`
- Delete `StructLogCollector` and make `StructLogger` collect the logs
directly
- Change all callers to use the new `StructLogger` where necessary and
extract logs from that.
- Deletes the apparently obsolete and likely nonfunctional 'TraceCall'
from the eth API.
Callers that only wish accumulated logs can use the `StructLogger`
implementation straightforwardly. Callers that wish to efficiently
capture VM traces and operate on them without excessive copying can now
implement the `Tracer` interface to receive VM state at each step and
do with it as they wish.
This CL also removes the accumulation of logs from the vm.Environment;
this was necessary as part of the refactor, but also simplifies it by
removing a responsibility that doesn't directly belong to the
Environment.
2016-08-22 09:26:15 +01:00
Jeffrey Wilcke
5b44a819d3
cmd/utils: removed DAO oppose / support message
2016-08-21 23:55:53 +02:00
Felix Lange
056f15aa53
accounts/abi/bind/backends: remove nil and remote backends
...
The remote backend is superseded by ethclient.
The nil backend's stated purpose was to enable testing of
accounts/abi/bind. None of its methods actually worked. A much simpler
way to get a crashing backend is to simply pass nil as the backend. With
a one-line change to the generator (removing two explicit interface
assertions), passing nil actually works.
Removing these backends means that less changes are required later.
2016-08-21 17:06:25 +02:00
Péter Szilágyi
37bda7e029
Merge pull request #2921 from karalabe/fix-fetcher-log
...
eth/fetcher: fix a log message formatting issue
2016-08-19 17:30:34 +03:00
Péter Szilágyi
454dc9b7c2
eth/fetcher: fix a log message formatting issue
2016-08-19 14:04:03 +03:00
Jordan Cohen
b3d7a5c5d0
README: docker run example
2016-08-18 12:49:42 -04:00
Felix Lange
475521dd74
Merge pull request #2909 from fjl/account-manager-cleanup
...
all: clean up tech debt left behind by the API split
2016-08-17 20:59:59 +02:00
Felix Lange
3c09c5f12d
core, miner: move Backend to miner
...
This ensures that package core doesn't depend on package accounts and
resolves an age-old TODO.
2016-08-17 17:39:04 +02:00
Felix Lange
1a9e66915b
common/compiler: simplify solc wrapper
...
Support for legacy version 0.9.x is gone. The compiler version is no
longer cached. Compilation results (and the version) are read directly
from stdout using the --combined-json flag. As a workaround for
ethereum/solidity#651, source code is written to a temporary file before
compilation.
Integration of solc in package ethapi and cmd/abigen is now much simpler
because the compiler wrapper is no longer passed around as a pointer.
Fixes #2806 , accidentally
2016-08-17 17:39:04 +02:00
Felix Lange
84d11c19fd
eth: remove dapp database remains
2016-08-17 17:39:03 +02:00
Felix Lange
312263c7d9
cmd/utils, node: create account manager in package node
...
The account manager was previously created by packge cmd/utils as part
of flag processing and then passed down into eth.Ethereum through its
config struct. Since we are starting to create nodes which do not have
eth.Ethereum as a registered service, the code was rearranged to
register the account manager as its own service. Making it a service is
ugly though and it doesn't really fix the root cause: creating nodes
without eth.Ethereum requires duplicating lots of code.
This commit splits utils.MakeSystemNode into three functions, making
creation of other node/service configurations easier. It also moves the
account manager into Node so it can be used by those configurations
without requiring package eth.
2016-08-17 17:39:03 +02:00
Felix Lange
3369783e0a
Merge pull request #2885 from bas-vk/subscriptions
...
rpc: refactor subscriptions and filters
2016-08-17 17:14:42 +02:00
Bas van Kervel
47ff813012
rpc: refactor subscriptions and filters
2016-08-17 12:59:58 +02:00
Nick Johnson
3b39d4d1c1
Merge pull request #2913 from karalabe/travis-go-1.7
...
TravisCI: add Go 1.7 targets, bump PPA to 1.7 too
2016-08-17 09:22:58 +01:00
Péter Szilágyi
2fab2b310b
TravisCI: add Go 1.7 targets, bump PPA to 1.7 too
2016-08-17 10:05:59 +03:00
Felix Lange
c2ac4465cd
Merge pull request #2873 from bas-vk/canonicalblock
...
core: ensure the canonical block is written before the canonical hash is set
2016-08-16 20:16:48 +02:00
Bas van Kervel
bb8059f6aa
core: ensure the canonical block is written before the canonical hash is set
2016-08-16 15:21:22 +02:00
Péter Szilágyi
4c2cc32f2e
Makefile: support building for the MIPS64 platforms ( #2682 )
2016-08-16 09:52:24 +02:00
Péter Szilágyi
89a3fbc0fb
Merge pull request #2866 from karalabe/downloader-future-ancestors
...
eth/downloader: fewer headers and futures too in ancestor lookup
2016-08-16 10:01:52 +03:00
cdetrio
077353b47e
console: fix return via callbacks ( #2910 )
...
Fixes #2872
2016-08-15 23:52:47 +02:00
Felix Lange
46621fd2c3
ethclient: add initial implementation of the typed RPC client
...
ethclient implements the proposed Ethereum Go API. There are no tests at
the moment, a suite that excercises all implementations of the API will
be added later.
2016-08-10 00:01:13 +02:00
Péter Szilágyi
d6625ac34d
Merge pull request #2891 from fjl/rpc-client-fixes
...
rpc: client bug fixes
2016-08-09 11:51:01 +03:00
Péter Szilágyi
b46b36729f
Merge pull request #2868 from karalabe/downloader-abort-master-drop
...
eth/downloader: abort sync if master drops (timeout prev)
2016-08-09 11:39:24 +03:00
Péter Szilágyi
893fabd336
Merge pull request #2867 from karalabe/dao-challenge-finish
...
eth, eth/downloader: don't forward the DAO challenge header
2016-08-09 11:39:13 +03:00
Péter Szilágyi
44ea0da2b0
Merge pull request #2861 from karalabe/track-peer-heads-properly
...
eth, eth/downloader: better remote head tracking
2016-08-09 11:38:34 +03:00
Felix Lange
4f4e1026f5
Merge pull request #2896 from karalabe/fix-xgo-crossbuilds
...
Makefile, build: move cross compilation into ci.go
2016-08-08 19:56:18 +02:00
Péter Szilágyi
8c23f20c68
Makefile, build: move cross compilation into ci.go
2016-08-08 13:45:44 +03:00
Felix Lange
4f65227971
Merge pull request #2892 from fjl/vm-hide-ecrecover-message
...
core/vm: hide ecrecover error message
2016-08-05 23:19:10 +02:00
Felix Lange
e4736fe469
core/vm: hide ecrecover error message
...
Fixes #2825
2016-08-05 23:12:52 +02:00
Felix Lange
e32925397b
rpc: add context argument to EthSubscribe
...
It's inconsistent not to pass it and most callers will
work with contexts anyway.
2016-08-05 20:48:33 +02:00
Felix Lange
f5f042ffdc
rpc: ensure client doesn't block for slow subscribers
...
I initially made the client block if the 100-element buffer was
exceeded. It turns out that this is inconvenient for simple uses of the
client which subscribe and perform calls on the same goroutine, e.g.
client, _ := rpc.Dial(...)
ch := make(chan int) // note: no buffer
sub, _ := client.EthSubscribe(ch, "something")
for event := range ch {
client.Call(...)
}
This innocent looking code will lock up if the server suddenly decides
to send 2000 notifications. In this case, the client's main loop won't
accept the call because it is trying to deliver a notification to ch.
The issue is kind of hard to explain in the docs and few people will
actually read them. Buffering is the simple option and works with close
to no overhead for subscribers that always listen.
2016-08-05 20:48:33 +02:00
Felix Lange
d445a9aafb
Merge pull request #2889 from fjl/godeps-update-notify
...
Godeps: update github.com/rjeczalik/notify to f627deca7a51
2016-08-05 19:29:59 +02:00
Felix Lange
464660651d
rpc: don't exceed context deadline while waiting for send lock
2016-08-05 13:27:02 +02:00
Felix Lange
8d9141ed9a
ethereum: add new Go API interfaces
2016-08-05 13:25:52 +02:00
Felix Lange
4be37222ef
Godeps: update github.com/rjeczalik/notify to f627deca7a51
...
Fixes #2829
2016-08-04 21:20:08 +02:00
Felix Lange
b0d9f7372a
internal/ethapi: add missing output fields
...
- returned headers didn't include mixHash
- returned transactions didn't include signature fields
- empty transaction input was returned as "", but should be "0x"
- returned receipts didn't include the bloom filter
- "root" in receipts was missing 0x prefix
2016-08-04 01:40:50 +02:00
Felix Lange
704fde01e8
core/types, core/vm: improve docs, add JSON marshaling methods
...
In this commit, core/types's types learn how to encode and decode
themselves as JSON. The encoding is very similar to what the RPC API
uses. The RPC API is missing some output fields (e.g. transaction
signature values) which will be added to the API in a later commit. Some
fields that the API generates are ignored by the decoder methods here.
2016-08-04 03:55:33 +02:00
Felix Lange
0c9a858f2d
eth: don't call ValidateFields
...
ValidateFields was introduced before the rlp decoder disallowed nil
values. Decoding RLP will never return nil values, there is no need
to check for them.
2016-08-04 03:30:05 +02:00
Felix Lange
b8ba80bff7
Merge pull request #2740 from Firescar96/removepeer
...
node, p2p, internal: Add ability to remove peers via admin interface
2016-07-29 12:34:28 +02:00
Péter Szilágyi
8ec6ccc54d
Merge pull request #2870 from lukeyeager/patch-1
...
Fix README typo
2016-07-27 10:49:04 +03:00
Luke Yeager
1ca9e552d9
README: Fix typo
...
"fine graned" -> "fine-grained"
2016-07-26 17:23:20 -07:00
Péter Szilágyi
8f0a4a25f8
eth/downloader: abort sync if master drops (timeout prev)
2016-07-26 13:07:12 +03:00
Péter Szilágyi
071af57bcf
eth, eth/downloader: don't forward the DAO challenge header
2016-07-26 12:26:41 +03:00
Péter Szilágyi
d68865f3b1
eth/downloader: fewer headers and futures too un ancestor lookup
2016-07-26 11:15:38 +03:00
Péter Szilágyi
a724952f75
Merge pull request #2862 from yep/faster-git-clone
...
containers/docker: use shallow clone of single branch
2016-07-26 09:51:47 +03:00
yep
a4215f469c
containers/docker: whitespace changes only, make future diffs more readable
2016-07-25 16:39:00 +02:00
yep
4c1abcb0ce
containers/docker: use shallow clone of single branch
2016-07-25 16:38:46 +02:00
Péter Szilágyi
1dd272080d
eth, eth/downloader: better remote head tracking
2016-07-25 15:14:14 +03:00
Felix Lange
3e3a79ea13
Merge pull request #2855 from karalabe/downloader-fix-stall-drop
...
eth/downloader: fix the stall checks/drops during sync
2016-07-25 12:56:11 +02:00
bas-vk
771655e3fe
Merge pull request #2808 from fjl/rpc-client-3
...
rpc: add new client, use it everywhere
2016-07-25 10:07:05 +02:00
Felix Lange
60cd5bf939
Merge pull request #2842 from fjl/downloader-remove-eth61
...
eth, eth/downloader, eth/fetcher: delete eth/61 sync code
2016-07-22 23:23:30 +02:00
Felix Lange
91b7690428
rpc: add new client, use it everywhere
...
The new client implementation supports concurrent requests,
subscriptions and replaces the various ad hoc RPC clients
throughout go-ethereum.
2016-07-22 23:21:27 +02:00
Felix Lange
bb01bea4e2
rpc: fix bad method error for batch requests
...
If a batch request contained an invalid method, the server would reply
with a non-batch error response. Fix this by tracking an error for each
batch element.
2016-07-22 23:21:27 +02:00
Felix Lange
c145589f25
rpc: remove grace period when shutting down the server
...
The server delayed closing of connections for 3s when stopping. This was
supposed to allow for slow handlers, but it didn't really work. When
geth quits, it will just exit immediately after quitting the server.
Removing the timer makes testing easier because all connections will be
closed after Stop returns.
2016-07-22 23:21:27 +02:00
Péter Szilágyi
c7c82f1b44
eth/downloader: fix the stall checks/drops during sync
2016-07-22 17:55:46 +03:00
Péter Szilágyi
f58ac2b46b
Merge pull request #2712 from bas-vk/sendtx
...
eth/api: rename signAndSendTransaction to sendTransaction
2016-07-22 14:28:21 +03:00
Felix Lange
016007bd25
eth, eth/downloader, eth/fetcher: delete eth/61 code
...
The eth/61 protocol was disabled in #2776 , this commit removes its
message handlers and hash-chain sync logic.
2016-07-22 13:17:19 +02:00
Bas van Kervel
4ee00b2309
eth/api: rename signAndSendTransaction to sendTransaction
2016-07-22 13:12:14 +02:00
Péter Szilágyi
fb81bc3291
Merge pull request #2851 from yep/alpine-3-4
...
containers/docker: update to alpine 3.4
2016-07-22 12:18:22 +03:00
Péter Szilágyi
c646d287f8
Merge pull request #2833 from karalabe/fix-dao-challenge-annoyance
...
eth: cancel DAO challenge on peer drop (annoying log)
2016-07-22 11:57:43 +03:00
yep
51d4539a79
containers/docker: update to alpine 3.4
2016-07-22 07:37:41 +02:00
Péter Szilágyi
f273c64a94
Merge pull request #2836 from fjl/godeps-update-leveldb
...
Godeps: bump github.com/syndtr/goleveldb/... to ab8b5dcf104
2016-07-20 10:55:53 +03:00
Felix Lange
74ec95e7f6
Merge pull request #2711 from hdiedrich/1.4.7-filter-races-cleanup
...
Fix #2710 Filter race: concurrent map read and map write
2016-07-19 23:14:08 +02:00
Felix Lange
65f340bb95
Merge pull request #2821 from Arachnid/discover-enode
...
cmd/bootnode: Add support for outputting a node's ID on the command line
2016-07-19 18:53:22 +02:00
Felix Lange
4d014d6d7e
Godeps: bump github.com/syndtr/goleveldb/... to ab8b5dcf104
2016-07-19 18:45:42 +02:00
Péter Szilágyi
fe56461387
Merge pull request #2834 from zsfelfoldi/chaindb-upgrade-fix
...
eth: fixed chaindb upgrade
2016-07-19 18:41:58 +03:00
zsfelfoldi
56efed71b5
eth: fixed chaindb upgrade
2016-07-19 14:32:38 +02:00
Péter Szilágyi
91f18ffd47
eth: cancel DAO challenge on peer drop (annoying log)
2016-07-19 12:00:09 +03:00
Jeffrey Wilcke
a4c4125b11
Merge pull request #2814 from karalabe/dao-hard-finalcombo
...
cmd, core, eth, miner, params, tests: finalize the DAO fork
2016-07-16 12:08:16 +02:00
Péter Szilágyi
993b412160
cmd/utils, eth: display the user's current fork, minor text tweak
2016-07-16 12:38:37 +03:00
Péter Szilágyi
2c2e389b77
cmd, core, eth, miner, params, tests: finalize the DAO fork
2016-07-15 16:52:55 +03:00
Péter Szilágyi
3291235711
accounts, core, eth: pass chain config for chain maker to test DAO
2016-07-15 16:52:55 +03:00
Péter Szilágyi
461cdb593b
core, params, tests: add DAO hard-fork balance moves
2016-07-15 16:52:55 +03:00
Péter Szilágyi
7f00e8c033
core, eth: enforce network split post DAO hard-fork
2016-07-15 16:52:55 +03:00
Péter Szilágyi
a87089fd2d
cmd, core, miner: add extradata validation to consensus rules
2016-07-15 16:52:55 +03:00
Péter Szilágyi
1e24c2e4f4
cmd/geth, miner, params: special extradata for DAO fork start
2016-07-15 16:52:55 +03:00
Péter Szilágyi
9e56811a37
core: gracefully handle missing homestead block config
2016-07-15 16:52:55 +03:00
Péter Szilágyi
6060e098c9
cmd, core, eth, params: implement flags to control dao fork blocks
2016-07-15 16:52:55 +03:00
Péter Szilágyi
aa1e052cb4
Merge pull request #2823 from karalabe/circleci-hive
...
circleci: enable docker based hive testing
2016-07-15 16:32:04 +03:00
Péter Szilágyi
1a652afe16
Merge pull request #2724 from pirapira/fix_reset_fees
...
vm: Replace some SstoreClearGas with SstoreResetGas
2016-07-15 16:24:16 +03:00
Péter Szilágyi
6f1e45d5ba
circleci: enable docker based hive testing
2016-07-15 16:07:34 +03:00
Nick Johnson
91130ea3fc
cmd/bootnode: Add support for outputting a node's ID on the command line
2016-07-15 11:09:37 +01:00
Felix Lange
b7caa1751c
Merge pull request #2819 from fjl/rpc-back-to-npipe
...
Godeps, rpc: switch back to package npipe
2016-07-15 09:11:06 +02:00
Firescar96
4c3da0f2e1
node, p2p, internal: Add ability to remove peers via admin interface
2016-07-14 18:51:41 -04:00
Felix Lange
39b4ef4b02
Godeps: update golang.org/x/net/...
...
This adds compatibility with Go 1.7, where context has
moved into the standard library.
2016-07-14 23:03:40 +02:00
Felix Lange
74be4a62c5
Godeps, rpc: switch back to package npipe
...
The named pipe implementation from go-winio has some issues
that need to be addressed before we can use it again.
2016-07-14 23:03:40 +02:00
Felix Lange
e11489eb5f
appveyor.yml: don't install Go and MinGW, they're already there ( #2813 )
2016-07-14 10:33:20 +02:00
Péter Szilágyi
f970610c04
Merge pull request #2799 from zsfelfoldi/api-nonce-fix2
...
core: added CheckNonce() to Message interface
2016-07-12 16:07:15 +03:00
Matthew Di Ferrante
68b48cc045
cmd/geth: print version on geth start ( #2622 )
2016-07-12 14:43:15 +02:00
Péter Szilágyi
7596b33506
Merge pull request #2801 from karalabe/dao-hardfork-importdrop
...
eth/downloader: return invalid chain (peer drop) on import fails
2016-07-12 15:22:13 +03:00
Péter Szilágyi
2b7aff202a
Merge pull request #2793 from karalabe/blockchain-import-mine-datarace
...
core: solve a remote-import/local-mine data race
2016-07-12 15:16:11 +03:00
Péter Szilágyi
e76c55a9b8
Merge pull request #2805 from karalabe/readme-running-geth
...
README: expand with "Running Geth" section
2016-07-12 14:16:45 +03:00
Péter Szilágyi
ca211065b6
README: expand with "Running Geth" section
2016-07-12 12:51:31 +03:00
villesundell
c7442ef0d2
ethdb, p2p/discover: replace "alloted" with "allotted" ( #2785 )
2016-07-12 11:42:47 +02:00
Péter Szilágyi
a691aa2a13
eth/downloader: return invalid chain (peer drop) on import fails
2016-07-11 19:00:49 +03:00
zsfelfoldi
00787fe781
core: added CheckNonce() to Message interface
2016-07-11 12:35:23 +02:00
Péter Szilágyi
f5a29eab5c
core: solve a remote-import/local-mine data race
2016-07-08 16:59:19 +03:00
Felix Lange
2b94d7fc7f
Merge pull request #2782 from karalabe/docker-alpine-master-nogmp
...
containers/docker/master-alpine: drop gmp dependency
2016-07-04 18:04:06 +02:00
Henning Diedrich
51f8ce26cf
eth: fix #2710 filter races
...
and locking bugs found in its wake.
2016-07-04 17:38:35 +02:00
Péter Szilágyi
092fcaffe4
containers/docker/master-alpine: drop gmp dependency
2016-07-04 14:42:57 +03:00
Péter Szilágyi
7e6ede1051
Merge pull request #2776 from karalabe/disable-eth61
...
eth: disable eth/61 to prepare for more elaborate fork sync algos
2016-07-04 12:29:21 +03:00
Péter Szilágyi
ddfef21125
eth: disable eth/61 to prepare for more elaborate fork sync algos
2016-07-04 12:03:19 +03:00
Péter Szilágyi
3af101ccc1
Merge pull request #2763 from karalabe/fix-readme-type
...
README: fix build->built typo
2016-07-01 11:21:50 +03:00
Try Space
4f088b6f1c
README: fix build->built typo
...
(cherry picked from commit e271fd57132763f39c6993a35e6c063aac3af4f1)
2016-07-01 11:20:15 +03:00
Péter Szilágyi
da9aad8876
Merge pull request #2759 from karalabe/drop-redundant-full-service
...
cmd, common, console, eth, release: drop redundant "full"s
2016-07-01 11:13:53 +03:00
Péter Szilágyi
96dc42d99c
cmd, common, console, eth, release: drop redundant "full"s
2016-06-30 13:03:26 +03:00
Péter Szilágyi
1e50f5dd28
Merge pull request #2159 from zsfelfoldi/light-backend
...
eth: separate common and full node-specific API and backend service
2016-06-30 12:57:50 +03:00
Péter Szilágyi
f127799d79
Merge pull request #2750 from sybiload/develop
...
cmd/geth: fix the import error message
2016-06-29 14:12:46 +03:00
Yohann LEON
6b1d73446d
cmd/geth: fix the import error message
...
cmd/geth: include the error message on import failure
2016-06-29 13:08:32 +02:00
Péter Szilágyi
fd4e161497
Merge pull request #2752 from karalabe/revert-soft-fork
...
Revert faulty DAO soft-fork
2016-06-29 12:17:18 +03:00
Péter Szilágyi
6362a9d610
Revert "test, cmd/evm, core, core/vm: illegal code hash implementation"
...
This reverts commit 7a5b571c67 .
2016-06-29 11:44:51 +03:00
Péter Szilágyi
d55fc35df1
Revert "core: add voting and result tracking for the dao soft-fork"
...
This reverts commit c4de28938f .
2016-06-29 11:44:40 +03:00
Péter Szilágyi
67e9d33486
Revert "core: update DAO soft-fork number, clean up the code"
...
This reverts commit ba784bdf36 .
2016-06-29 11:44:29 +03:00
Péter Szilágyi
219859f8bb
Revert "core: update the DAO soft fork proposal to the final block"
...
This reverts commit 1e3a7d4fab .
2016-06-29 11:44:03 +03:00
Péter Szilágyi
e0493457d5
Merge pull request #2734 from karalabe/dao-final-block
...
core: update the DAO soft fork proposal to the final block
2016-06-24 16:19:45 +03:00
Péter Szilágyi
1e3a7d4fab
core: update the DAO soft fork proposal to the final block
2016-06-24 15:24:09 +03:00
Péter Szilágyi
848dec3da2
Merge pull request #2725 from karalabe/obscuren-softfork-dao-2
...
DAO soft-fork
2016-06-24 13:09:36 +03:00
Péter Szilágyi
ae0880997b
Merge pull request #2731 from justincc/remove-old-natspec-js-stubs
...
web3ext: Remove old natspec Admin_JS stubs
2016-06-24 11:02:44 +03:00
Justin Clark-Casey
9eb50a9624
web3ext: Remove old natspec Admin_JS stubs
...
This stops them from showing up on the javascript console.
2016-06-23 22:34:53 +01:00
Péter Szilágyi
acecefee88
Merge pull request #2726 from fjl/appveyor
...
build: add ci.go, use it everywhere
2016-06-23 18:44:22 +03:00
Péter Szilágyi
ba784bdf36
core: update DAO soft-fork number, clean up the code
2016-06-23 17:16:43 +03:00
Péter Szilágyi
c4de28938f
core: add voting and result tracking for the dao soft-fork
2016-06-23 16:43:35 +03:00
Felix Lange
6c33ba14a4
build: add ci.go, use it everywhere
...
The new build script, ci.go, replaces some of the older shell scripts.
ci.go can compile go-ethereum, run the tests, create release archives
and debian source packages.
2016-06-22 13:42:39 +02:00
Jeffrey Wilcke
7a5b571c67
test, cmd/evm, core, core/vm: illegal code hash implementation
...
This implements a generic approach to enabling soft forks by allowing
anyone to put in hashes of contracts that should not be interacted from.
This will help "The DAO" in their endevour to stop any whithdrawals from
any DAO contract by convincing the mining community to accept their code
hash.
2016-06-22 11:38:25 +03:00
Péter Szilágyi
599e3c7b3f
Merge pull request #2722 from fabioberger/fixTypos
...
README, core, rpc: Fix typos
2016-06-22 11:08:49 +03:00
Yoichi Hirai
86bc7795a3
vm: Replace some SstoreClearGas with SstoreResetGas
2016-06-21 21:15:26 +02:00
Fabio Berger
a3efdb13f2
README, core, rpc: fix various typos
2016-06-21 17:38:35 +01:00
zsfelfoldi
3a97280ae8
eth: separate common and full node-specific API and backend service
2016-06-16 17:36:38 +02:00
Péter Szilágyi
4f3f6e28d5
Merge pull request #2685 from karalabe/ethash-bitengdian-fix
...
Godeps: pull in ethash with the big endian build fix
2016-06-15 13:07:46 +03:00
Péter Szilágyi
79ada05756
Merge pull request #2693 from obscuren/evm-bin-create
...
cmd/evm: added --create flag indicating the exec code is to be created
2016-06-15 11:35:34 +03:00
Péter Szilágyi
c48271958f
Merge pull request #2697 from karalabe/CamTosh-patch-1-3
...
cmd/utils: add space between "to" and filename
2016-06-15 11:11:15 +03:00
Tosh Camille
ac66d96c5a
cmd/utils: add space between "to" and filename
2016-06-15 11:02:22 +03:00
Jeffrey Wilcke
e5165aeb27
cmd/evm: added --create flag indicating the exec code is to be created
...
This fixes an issue if you wanted to test out code deployment rather
than running a piece of code with an argument. This solves it by adding
a --create flag that indicates the Create function should be used rather
than the Call function.
This also adds a statedb.commit call so that the proper state can be
dumped when requested using the --dump flag.
2016-06-14 17:11:33 +02:00
Péter Szilágyi
970f4c06e1
Merge pull request #2680 from karalabe/abi-fix-uints
...
accounts/abi: fix uint64 upper range encoding.
2016-06-14 17:09:13 +03:00
Péter Szilágyi
22ef7370e7
Merge pull request #2686 from obscuren/issue-2542
...
core/state, eth: Updated suicides objects when tracing transactions
2016-06-14 16:54:46 +03:00
Jeffrey Wilcke
a38be3eb48
Merge pull request #2455 from zsfelfoldi/chaindb
...
core: improved chain db performance by using sequential keys
2016-06-13 15:16:09 +02:00
Felix Lange
73c028c40a
Merge pull request #2687 from karalabe/downloader-fasttest-fix
...
eth/downloader: fix occasional fast sync critical section test fails
2016-06-13 12:55:32 +02:00
Péter Szilágyi
783289068a
eth/downloader: fix occasional fast sync critical section test fails
2016-06-13 13:04:19 +03:00
Jeffrey Wilcke
bb3651abc8
core/state, eth: Updated suicides objects when tracing transactions
...
Consensus rules dictate that objects can only be removed during the
finalisation of the transaction (i.e. after all calls have finished).
Thus calling a suicided contract twice from the same transaction:
A->B(S)->ret(A)->B(S) results in 2 suicides. Calling the suicided
object twice from two transactions: A->B(S), A->B, results in only one
suicide and a call to an empty object.
Our current debug tracing functionality replays all transaction that
were executed prior to the targetted transaction in order to provide
the user with an accurate trace.
As a side effect to calling StateDB.IntermediateRoot it also deletes any
suicides objects. Our tracing code never calls this function because it
isn't interested in the intermediate root. Becasue of this it caused a
bug in the tracing code where transactions that were send to priviously
deleted objects resulted in two suicides rather than one suicide and a
call to an empty object.
Fixes #2542
2016-06-13 11:57:42 +02:00
Péter Szilágyi
f0134f363b
Godeps: pull in ethash with the big endian build fix
2016-06-13 12:43:09 +03:00
Péter Szilágyi
ce88d41907
Merge pull request #2681 from karalabe/fix-cli-deprecation
...
cmd: fix CLI package deprecation warnings
2016-06-10 16:24:06 +03:00
Péter Szilágyi
0f9539e1e3
accounts/abi: fix uint64 upper range encoding.
2016-06-10 12:32:08 +03:00
Péter Szilágyi
90e07b19ab
cmd: fix CLI package deprecation warnings
2016-06-10 11:23:00 +03:00
Péter Szilágyi
63d1d145e2
Merge pull request #2677 from bas-vk/cli
...
cmd/geth: codegansta/cli package renamed to urfave/cli
2016-06-10 10:16:20 +03:00
Péter Szilágyi
c039bb38d4
Merge pull request #2653 from tbocek/develop
...
Negative numbers not properly converted in ABI encoding
2016-06-10 10:14:42 +03:00
Bas van Kervel
861add3d72
cmd/geth: codegansta/cli package renamed to urfave/cli
2016-06-09 15:37:13 +02:00
Péter Szilágyi
6886913fdf
Merge pull request #2670 from bas-vk/indent
...
Ignore round and curly brackets in strings for indentation level
2016-06-09 15:42:17 +03:00
Felix Lange
c75d3b0ede
Merge pull request #2673 from karalabe/fix-accounts-usage-text
...
cmd/geth: fix the keystore path in the accounts help text
2016-06-08 17:22:52 +02:00
Péter Szilágyi
7c0eb47dfb
cmd/geth: fix the keystore path in the accounts help text
2016-06-08 17:00:18 +03:00
Bas van Kervel
dbcdf83ed8
console: ignore round and curly brackets in strings when determining indentation level
2016-06-08 14:21:52 +02:00
Péter Szilágyi
d31eab94fd
Merge pull request #2671 from karalabe/randomize-console-tests
...
cmd/geth: truly randomize console test RPC endpoints
2016-06-08 14:38:22 +03:00
Péter Szilágyi
553f08b819
Merge pull request #2669 from karalabe/fix-windows-console-color
...
console: fix windows console colors
2016-06-08 13:54:49 +03:00
Péter Szilágyi
32258af87b
cmd/geth: truly randomize console test RPC endpoints
2016-06-08 13:53:07 +03:00
Péter Szilágyi
d251d48439
console: fix windows color transformation issue
2016-06-08 13:12:15 +03:00
zsfelfoldi
f9917c8c7b
core: improved chainDb using sequential keys
2016-06-07 16:38:56 +02:00
zsfelfoldi
5a458da42a
core: chain read/write speed benchmarks
2016-06-06 14:38:28 +02:00
Thomas Bocek
89c6c5bb85
accounts/abi: Negative numbers not properly converted in ABI encoding
...
When converting a negative number e.g., -2, the resulting ABI encoding
should look as follows:
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe.
However, since the check of the type is for an uint instead of an
int, it results in the following ABI encoding:
0101010101010101010101010101010101010101010101010101010101010102. The
Ethereum ABI
(https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI ) says,
that signed integers are stored in two's complement which should be
of the form ffffff.... and not 01010101..... for e.g. -1. Thus, I
removed the type check in numbers.go as well as the function S256
as I don't think they are correct. Or maybe I'm missing something?
2016-06-06 14:27:15 +02:00
Péter Szilágyi
fdd61b83ff
Merge pull request #2649 from karalabe/omit-startup-tx-processing
...
eth: don't accept transactions until we sync up with the network
2016-06-06 15:12:27 +03:00
Péter Szilágyi
32559ccad1
eth: don't accept transactions until we sync up with the network
2016-06-06 14:45:38 +03:00
Péter Szilágyi
826efc2295
Merge pull request #2630 from karalabe/adaptive-qos-tuning
...
eth/downloader: adaptive quality of service tuning
2016-06-06 14:44:59 +03:00
Péter Szilágyi
88f174a014
eth/downloader: adaptive quality of service tuning
2016-06-06 14:20:57 +03:00
Péter Szilágyi
780bdb3e80
Merge pull request #2647 from karalabe/fastsync-critical-resilience
...
eth/downloader: make fast sync resilient to critical section fails
2016-06-06 12:42:49 +03:00
Péter Szilágyi
828e1e35fd
Merge pull request #2655 from fjl/txpool-lock
...
core: add missing lock in TxPool.GetTransaction
2016-06-03 14:08:22 +03:00
Felix Lange
fc85dd175e
core: add missing lock in TxPool.{GetTransaction,RemoveTx}
...
Fixes #2650
2016-06-03 12:43:33 +02:00
Felix Lange
89ba380b3c
Merge pull request #2656 from fjl/console-test
...
cmd/geth: make console tests more robust
2016-06-03 11:25:38 +02:00
Felix Lange
b57b6e341e
cmd/geth: make console tests more robust
...
* use --port 0 to avoid p2p port conflicts
* use --maxpeers 0 so it doesn't connect to bootstrap nodes
* use geth.expectExit() to wait for termination
2016-06-03 11:08:55 +02:00
Felix Lange
ad0e6e971e
console: remove unnecessary JS evaluation in Welcome
2016-06-03 11:08:55 +02:00
Felix Lange
fdba0cb03c
internal/jsre: ensure Stop can be called more than once
...
This makes "geth js file.js" terminate again.
2016-06-02 22:49:33 +02:00
Péter Szilágyi
61ee9f299d
eth/downloader: make fast sync resilient to critical section fails
2016-06-02 12:37:14 +03:00
Péter Szilágyi
16a23ff740
Merge pull request #2637 from karalabe/downloader-always-cancel
...
eth/downloader: ensure cancel channel is closed post sync
2016-05-31 14:48:52 +03:00
Péter Szilágyi
1d5d21726a
Merge pull request #2627 from karalabe/concurrent-head-sync
...
eth/downloader, trie: pull head state concurrently with chain
2016-05-31 11:52:16 +03:00
Péter Szilágyi
7b662103a0
Merge pull request #2535 from karalabe/modularize-console
...
cmd, console: split off the console into a reusable package
2016-05-31 11:48:08 +03:00
Péter Szilágyi
da729e5b38
cmd/geth, console: fix reviewer issues
2016-05-31 10:59:38 +03:00
Jeffrey Wilcke
5c39a1bb26
Merge pull request #2585 from karalabe/trie-dirty-tracking
...
core, core/state, trie: enterprise hand-tuned multi-level caching
2016-05-30 23:07:51 +02:00
Péter Szilágyi
14ae5708d6
console, internal/jsre: colorize JavaScript exceptions too
2016-05-30 17:25:23 +03:00
Péter Szilágyi
ffaf58f0a9
cmd, console: split off the console into a reusable package
2016-05-30 17:25:23 +03:00
Péter Szilágyi
4496a44f68
eth/downloader: ensure cancel channel is closed post sync
2016-05-30 12:01:50 +03:00
Péter Szilágyi
4f1d92b332
eth/downloader, trie: pull head state concurrently with chain
2016-05-27 14:26:00 +03:00
Péter Szilágyi
ab664c7e17
Merge pull request #2626 from karalabe/fix-testnet-zero-nonce
...
core/state: return the starting nonce for non-existent accs (testnet)
2016-05-27 11:10:52 +03:00
Péter Szilágyi
8ee84584a4
core/state: return the starting nonce for non-existent accs (testnet)
2016-05-27 10:42:11 +03:00
Péter Szilágyi
748d1c171d
core, core/state, trie: enterprise hand-tuned multi-level caching
2016-05-26 16:33:09 +03:00
Jeffrey Wilcke
a7434fd008
Merge pull request #2614 from fjl/bad-block-report
...
eth: enable bad block reports
2016-05-25 22:40:28 +02:00
Jeffrey Wilcke
d9bb8179d3
Merge pull request #2617 from obulpathi/develop
...
misc: fix spelling mistake
2016-05-25 09:54:06 +02:00
Jeffrey Wilcke
ee36057dd5
Merge pull request #2612 from remyroy/fix-eth-getCompilers
...
eth/api: fixed GetCompilers when there is no error creating Solc
2016-05-25 09:48:51 +02:00
Jeffrey Wilcke
a476aabf1a
Merge pull request #2613 from remyroy/rel-path-solc
...
common/compiler: support relative path to solc
2016-05-25 09:47:54 +02:00
Obulapathi N Challa
f3769a97d5
misc: fix spelling mistake
2016-05-24 22:13:05 -05:00
Felix Lange
ca18202eb9
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.
2016-05-25 02:02:51 +02:00
Rémy Roy
5eb60a6da2
common/compiler: support relative path to solc
2016-05-24 17:02:00 -04:00
Rémy Roy
f86ea9aad5
eth/api: fixed GetCompilers when there is no error creating Solc
2016-05-24 16:44:33 -04:00
Felix Lange
5bcdbb1ce4
Merge pull request #2603 from Digital-Contraptions-Imaginarium/develop
...
README: make it clear how to build all executables
2016-05-23 16:46:16 +02:00
Gianfranco Cecconi
2e530f4889
Just to make it clear how to build all executables
2016-05-23 14:19:17 +01:00
Jeffrey Wilcke
7f515b0e88
Merge pull request #2564 from bas-vk/submit-tx
...
eth: add new RPC method (personal.) SignAndSendTransaction
2016-05-23 14:17:46 +02:00
Jeffrey Wilcke
b4dd3209b2
Merge pull request #2597 from fabioberger/develop
...
core: Simplify bloom9 tests
2016-05-23 13:15:32 +02:00
Jeffrey Wilcke
262d92834a
Merge pull request #2575 from bas-vk/filter
...
eth/filter: bugfix which can cause a nil pointer crash when parsing f…
2016-05-23 12:54:35 +02:00
Fabio Berger
faf663133b
core: Simplify bloom9 tests with available convenience method TestBytes
2016-05-22 16:42:46 -07:00
Bas van Kervel
64a6c2c1b6
eth: add new RPC method (personal.) SignAndSendTransaction
2016-05-20 15:54:18 +02:00
Jeffrey Wilcke
847aaffbb8
Merge pull request #2589 from karalabe/estimate-remove-codecheck
...
accounts/abi/bind, eth: rely on getCode for sanity checks, not estimate and call
2016-05-20 15:13:29 +02:00
Jeffrey Wilcke
a8472e0fdb
Merge pull request #2315 from karalabe/concurrent-headers-2
...
eth/downloader: concurrent header downloads
2016-05-20 14:25:28 +02:00
Péter Szilágyi
1580ec1804
accounts/abi/bind, eth: rely on getCode for sanity checks, not estimate and call
2016-05-20 12:29:28 +03:00
Péter Szilágyi
8906b2fe09
eth/downloader: fix reviewer comments
2016-05-20 10:56:01 +03:00
Jeffrey Wilcke
e798e4fd75
Merge pull request #2582 from obscuren/fix-sign-tx
...
eth: fixed regression in eth_signTransaction fixes #2578
2016-05-19 14:22:24 +02:00
Jeffrey Wilcke
4b1a7d3868
eth: fixed regression in eth_signTransaction fixes #2578
...
Sign transaction returned the unsigned transaction rather than the
signed one.
2016-05-18 17:25:34 +02:00
Felix Lange
e27af97a3c
Merge pull request #2580 from fjl/p2p-config
...
node, p2p: move network config out of Server
2016-05-18 12:37:15 +02:00
Felix Lange
542b839ec7
node, p2p: move network config out of Server
...
This silences a go vet message about copying p2p.Server in package node.
2016-05-18 12:19:04 +02:00
Bas van Kervel
67cd4ee8d2
eth/filter: bugfix which can cause a nil pointer crash when parsing filter arguments
2016-05-17 16:17:54 +02:00
Jeffrey Wilcke
c8a8ad97f7
Merge pull request #2574 from karalabe/notx-during-fastsync
...
eth: skip transaction handling during fast sync
2016-05-17 14:56:57 +02:00
Péter Szilágyi
d87f7a1e81
eth: skip transaction handling during fast sync
2016-05-17 14:17:20 +03:00
Jeffrey Wilcke
adc1b50395
Merge pull request #2567 from fjl/console-history-exclude
...
cmd/geth: fix console history exclusion
2016-05-17 12:04:58 +02:00
Péter Szilágyi
e86619e75d
eth/downloader: stream partial skeleton filling to processor
2016-05-17 10:03:34 +03:00
Péter Szilágyi
b40dc8a1da
eth/downloader: implement concurrent header downloads
2016-05-17 10:03:34 +03:00
Felix Lange
86da6feb40
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.
2016-05-14 00:10:41 +02:00
Jeffrey Wilcke
fe532a98f9
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-13 12:12:46 +02:00
Péter Szilágyi
39ce85cf5d
eth/downloader: bound fork ancestry and allow heavy short forks
2016-05-13 12:12:13 +02:00
Jeffrey Wilcke
72e60dea36
Merge pull request #2563 from obscuren/rpcaddr-fix
...
eth: fixed double close of channel. Fixes #2555
2016-05-12 20:50:40 +02:00
Jeffrey Wilcke
7c1f74713e
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.
2016-05-12 20:38:09 +02:00
Péter Szilágyi
a5ff487889
Merge pull request #2559 from karalabe/abigen-unmarshal
...
accounts/abi/bind: fix multi-value anonymous unmarshalling
2016-05-12 17:49:09 +03:00
Péter Szilágyi
331b815300
Merge pull request #2560 from 6londe/patch-3
...
README: fix typos
2016-05-12 16:52:09 +03:00
Changhoon Lee
2348f8e2a8
README: fix typos
...
README: fix typos
2016-05-12 22:40:47 +09:00
Péter Szilágyi
251b3c6406
accounts/abi: fix abi test for go vet...
2016-05-12 16:36:58 +03:00
Péter Szilágyi
cc21706c50
accounts/abi/bind: fix multi-value anonymous unmarshalling
2016-05-12 16:28:18 +03:00
Péter Szilágyi
25931f12c1
Merge pull request #2551 from obscuren/abi-interface-slice-fix
...
accounts/abi: fixed unpacking in to already sliced interfaces
2016-05-12 16:27:26 +03:00
Jeffrey Wilcke
91a7a4a786
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.
2016-05-11 13:36:27 +02:00
Péter Szilágyi
d89e57ea8d
Merge pull request #2549 from karalabe/geth-tester-text-templates
...
cmd/geth: use text/templates in the tester, not html
2016-05-11 13:51:11 +03:00
Péter Szilágyi
5a901bb555
Merge pull request #2548 from karalabe/surface-rpc-endpoint
...
cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix miner
2016-05-11 12:37:26 +03:00
Péter Szilágyi
284f1d6beb
cmd/geth: use text/templates in the tester, not html
2016-05-11 11:58:48 +03:00
Péter Szilágyi
bc6fdad786
cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix miner
2016-05-11 11:49:44 +03:00
Jeffrey Wilcke
c05db38a5e
Merge pull request #2515 from karalabe/multigo-travis
...
travis: run CI builds against multiple Go versions
2016-05-11 10:10:28 +02:00
Jeffrey Wilcke
34c56766b7
Merge pull request #2539 from bas-vk/origin-case
...
rpc: HTTP origin case insensitive
2016-05-11 10:10:04 +02:00
Bas van Kervel
5479097790
rpc: HTTP origin case insensitive
2016-05-10 18:01:58 +02:00
Jeffrey Wilcke
20d4e527bd
Merge pull request #2537 from obscuren/hotfix-pending-statu
...
miner: fixed pending state by not shutting down update loop
2016-05-10 13:43:07 +02:00
Jeffrey Wilcke
a824c3f02f
miner: fixed pending state by not shutting down update loop
2016-05-10 13:35:01 +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
Jeffrey Wilcke
b6135a72dd
Merge pull request #2527 from obscuren/trace-transaction-fix
...
eth: fixed tracing functions using the current header instead of parent
2016-05-09 10:34:53 +02:00
Jeffrey Wilcke
7d59c5c58d
eth: fixed tracing functions using the current header instead of parent
...
Fixes #2525
2016-05-09 10:24:31 +02:00
Péter Szilágyi
8aa4597c9e
Merge pull request #2520 from karalabe/makefile-cross-update
...
Makefile: go build instead of install (solves cross compile issues)
2016-05-09 11:12:28 +03:00
Péter Szilágyi
57ba1824ac
Merge pull request #2514 from bas-vk/startRPC_WS
...
node: start RPC/WS interface on localhost by default
2016-05-08 17:37:35 +03:00
Felix Lange
c89f4352d0
build: add CI scripts for windows
2016-05-08 01:23:07 +02:00
Péter Szilágyi
6a00a3ade1
Makefile: go build instead of install (solves cross compile issues)
2016-05-06 16:56:22 +03:00
Péter Szilágyi
f821b0188a
Merge pull request #2518 from fjl/debug-go-trace
...
internal/debug: also rename debug_startTrace to debug_startGoTrace
2016-05-06 13:05:54 +03:00
Bas van Kervel
d79f2f2656
node: start RPC/WS interface on localhost by default
2016-05-06 12:00:47 +02:00
Felix Lange
130bccc763
cmd/utils: flush trace and CPU profile data when force-qutting
...
Also reduce log messages a little bit.
2016-05-06 11:16:47 +02:00
Felix Lange
ae9ed5c420
internal/debug: also rename debug_startTrace to debug_startGoTrace
...
This was missing from the previous change.
2016-05-06 11:15:05 +02:00
Jeffrey Wilcke
a1c201a5ac
Merge pull request #2517 from fjl/debug-go-trace
...
internal/debug: rename debug_trace to debug_goTrace
2016-05-06 11:09:15 +02:00
Felix Lange
844e911129
internal/debug: rename debug_trace to debug_goTrace
...
Reduces confusion with EVM execution tracing methods.
2016-05-06 10:27:24 +02:00
Péter Szilágyi
bc3b406bff
travis: run CI builds against multiple Go versions
2016-05-04 20:10:36 +03:00
Jeffrey Wilcke
2d7d7ef2fe
Merge pull request #2511 from obscuren/ver-fix
...
cmd/geth: fixed to use proper version string for output
2016-05-03 14:04:53 +02:00
Jeffrey Wilcke
14d5033c9d
cmd/geth: fixed to use proper version string for output
2016-05-03 14:01:37 +02:00
Jeffrey Wilcke
258cc73ea9
Merge pull request #2510 from fjl/p2p-fixups
...
p2p/discover: prevent bonding self
2016-05-03 13:30:51 +02:00
Jeffrey Wilcke
79b7b5eeaa
Merge pull request #2505 from karalabe/make-readme-suck-less
...
Make the README suck less :P
2016-05-03 13:30:42 +02:00
Péter Szilágyi
b4fbcd5060
README: Polish up exec section, rewrite contrib and add license.
2016-05-03 14:26:55 +03:00
Jeffrey Wilcke
488528e9e4
Merge pull request #2497 from karalabe/version-contract-3
...
Geth release oracle
2016-05-03 13:19:05 +02:00
Felix Lange
8110671960
p2p/discover: prevent bonding self
2016-05-02 18:50:16 +02:00
Felix Lange
32bb280179
p2p: improve readability of dial task scheduling code
2016-05-02 18:50:15 +02:00
Péter Szilágyi
4536b993ff
cmd/geth, release: polish and deploy live release contract
2016-05-02 16:20:58 +03:00
Péter Szilágyi
586eddfd09
release, all: integrate the release service into geth
2016-05-02 16:20:21 +03:00
Péter Szilágyi
d46da273c6
common/releases: rewrite release version contract + use native dapps
2016-05-02 16:20:04 +03:00
Gustav Simonsson
ecd7199c43
common/versions, cmd/utils: add geth version contract
2016-05-02 10:31:54 +03:00
Felix Lange
1c20313a6a
Merge pull request #2493 from almindor/develop
...
eth: add personal_importRawKey
2016-04-29 23:09:37 +02:00
Péter Szilágyi
cfa999f006
Merge pull request #2504 from Arachnid/public-vmconfig
...
Provide a public accessor for ChainConfig
2016-04-29 14:50:10 +03:00
Nicholas Johnson
c74a575725
core: Provide a public accessor for ChainConfig
...
This is necessary for external users of the go-ethereum code who want to, for instance, build a custom node that plays back transactions, as core.ApplyTransaction requires a ChainConfig as a parameter.
2016-04-29 12:42:03 +01:00
Péter Szilágyi
9672a62a38
Merge pull request #2485 from karalabe/fakepow
...
cmd: add a `--fakepow` flag to help benchmarking database changes
2016-04-29 14:19:38 +03:00
Ales Katona
572da73d4d
eth: add personal_importRawKey for runtime private key import
2016-04-28 09:11:40 -06:00
Péter Szilágyi
0f722df2d9
Merge pull request #2435 from obscuren/abi-array-fixes
...
accounts/abi: refactored ABI package
2016-04-28 15:23:07 +03:00
Jeffrey Wilcke
1b77d5090d
Merge pull request #2499 from bas-vk/reorg-logs
...
eth/filters: ignore logs that don't match filter criteria on chain reorg
2016-04-28 12:59:07 +02:00
Jeffrey Wilcke
e62c2aeb1b
Merge pull request #2491 from obscuren/genesis-config-fix
...
core, eth: added json tag field for proper unmarshalling
2016-04-28 12:58:56 +02:00
Jeffrey Wilcke
4880868c88
accounts/abi: fixed string and fixed size bytes packing
2016-04-28 12:41:47 +02:00
Jeffrey Wilcke
c3d5250473
accounts/abi: added unpacking "anything" in to interface{}
2016-04-28 12:41:42 +02:00
Jeffrey Wilcke
e0dc45fce2
accounts/abi: fixed strict go-like unpacking
2016-04-28 12:41:37 +02:00
Bas van Kervel
48cc36ce83
eth/filters: ignore logs that don't match filter criteria on chain reorg
2016-04-28 12:33:42 +02:00
Péter Szilágyi
123aa659e4
Merge pull request #2496 from karalabe/abibind-missing-contract-error
...
accounts/abi/bind, eth: add contract non-existent error
2016-04-27 17:31:12 +03:00
Péter Szilágyi
cdcbb2f160
accounts/abi/bind, eth: add contract non-existent error
2016-04-27 17:15:23 +03:00
Péter Szilágyi
db62979514
Merge pull request #2492 from fjl/accounts-arm64
...
accounts: disable file system watch on linux/arm64
2016-04-26 16:15:18 +03:00
Péter Szilágyi
5137c04ccf
Merge pull request #2484 from pcasaretto/address-test-coverage
...
Improve Address test coverage
2016-04-26 16:13:49 +03:00
Paulo L F Casaretto
a20d3fc362
common: Add tests for Address#UnmarshalJSON
2016-04-26 09:12:36 -03:00
Felix Lange
3d6d828caf
Merge pull request #2478 from fjl/geth-js-tweak
...
cmd/geth, jsre: improve the js command
2016-04-26 10:39:19 +02:00
Felix Lange
6a543607ef
accounts: disable file system watch on linux/arm64
2016-04-25 13:30:28 +02:00
Jeffrey Wilcke
c1a4dcfc87
core, eth: added json tag field for proper unmarshalling
...
According to our own instructions the genesis config attribute should be
"config". The genesis definition in the go code, however, has a field
called `ChainConfig`. This field now has a `json:"config"` struct tag so
that the json is properly unmarshalled.
This fixes #2482
2016-04-25 12:48:31 +02:00
Felix Lange
70b8b54cd2
Merge pull request #2481 from fjl/bootnode-fixup
...
cmd/bootnode: fix -genkey, add logging options
2016-04-25 12:42:28 +02:00
Felix Lange
c88c89fd9e
cmd/bootnode: fix -genkey, add logging options
2016-04-22 13:35:40 +02:00
Péter Szilágyi
b06f44ecc2
cmd: add a --fakepow flag to help benchmarking database changes
2016-04-21 12:14:57 +03:00
Felix Lange
87ae0df476
cmd/geth, jsre: improve the js command
...
geth js stopped the JS runtime after running the first input file
and blocked for pending callbacks. This commit makes it process
all files and enables quitting with Ctrl-C regardless of callbacks.
Error reporting is also improved. If a script fails to load, the error
is printed and includes the backtrace. package jsre now ensures that
otto is aware of the filename, the backtrace will contain them.
Before:
$ geth js bad.js; echo "exit $?"
... log messages ...
exit 0
After:
$ geth js bad.js; echo "exit $?"
... log messages ...
Fatal: JavaScript Error: Invalid number of input parameters
at web3.js:3109:20
at web3.js:4917:15
at web3.js:4960:5
at web3.js:4984:23
at checkWork (bad.js:11:9)
at bad.js:19:1
exit 1
2016-04-20 23:33:43 +02:00
Jeffrey Wilcke
5127ec10cb
accouns/abi: refactored ABI package
...
Refactored the abi package parsing and type handling. Relying mostly on
package reflect as opposed to most of our own type reflection. Our own
type reflection is still used however for cases such as Bytes and
FixedBytes (abi: bytes•).
This also inclused several fixes for slice handling of arbitrary and
fixed size for all supported types.
This also further removes implicit type casting such as assigning,
for example `[2]T{} = []T{1}` will fail, however `[2]T{} == []T{1, 2}`
(notice assigning *slice* to fixed size *array*). Assigning arrays to
slices will always succeed if they are of the same element type.
Incidentally also fixes #2379
2016-04-20 16:43:57 +02:00
Jeffrey Wilcke
18580e152c
VERSION, cmd/geth: bumped version
2016-04-19 18:17:44 +02:00
Péter Szilágyi
a6ca8fd268
Merge pull request #2463 from fjl/rpc-context-key
...
rpc: remove NotifierContextKey
2016-04-19 10:22:48 +03:00
Felix Lange
27116bd46c
Merge pull request #2462 from fjl/rpc-remove-js
...
rpc: move web3.js extensions to internal/web3ext
2016-04-15 18:13:24 +02:00
Felix Lange
a40e61b4ac
rpc: remove NotifierContextKey
...
Context keys must have a unique type in order to prevent
any unintented clashes. The code used int(1) as key.
Fix it by implementing the pattern recommended by package context.
2016-04-15 18:10:52 +02:00
Péter Szilágyi
16d10aae0c
Merge pull request #2461 from karalabe/fix-simulator-estimates
...
accounts/abi/bind/backends: estimate needed gas, not used
2016-04-15 18:50:50 +03:00
Felix Lange
e728aaca72
rpc: move web3.js extensions to internal/web3ext
2016-04-15 17:36:01 +02:00
Péter Szilágyi
e581f2690a
accounts/abi/bind/backends: estimate needed gas, not used
2016-04-15 18:32:21 +03:00
Felix Lange
6197fbf8d7
Merge pull request #2458 from fjl/go-vet
...
all: fix go vet warnings
2016-04-15 13:45:15 +02:00
Péter Szilágyi
5c17b2f521
Merge pull request #2460 from fjl/whisper-expiration-test-delay
...
whisper: deflake Test*MessageExpiration
2016-04-15 14:44:36 +03:00
Felix Lange
3a5bdef962
whisper: deflake Test*MessageExpiration
...
These tests have become a common annoyance on CI. Fix them by allowing
messages with expiration == now into the cache and delaying the check
for expired message handling slightly.
2016-04-15 13:28:46 +02:00
Felix Lange
bf5ae502ef
Makefile: enable go vet on Travis CI
2016-04-15 11:17:27 +02:00
Felix Lange
6fdd0893c3
all: fix go vet warnings
2016-04-15 11:17:27 +02:00
Felix Lange
68c755a238
core/state: fix TestDump
...
Lazy "I'll just put return here instead of fixing the test" found by go vet.
2016-04-15 11:16:56 +02:00
Felix Lange
ebf3cf8f7d
logger/glog: fix go vet issues
...
logging.printf triggered a format string warning. Silence it
by renaming the function.
2016-04-15 10:58:41 +02:00
Felix Lange
24cdac41f3
core, core/types, eth: add and use Block.Body
...
This fixes a few uses of unkeyed Body literals which go vet was
complaining about.
2016-04-15 10:57:37 +02:00
Felix Lange
fdc5a7dc1a
Merge pull request #2457 from fjl/license-update-1.4
...
all: update license information
2016-04-15 10:09:40 +02:00
Felix Lange
d04a2e7557
all: update license information
2016-04-15 09:48:05 +02:00
Felix Lange
728ad6f47d
build: tweak update-license.go
2016-04-15 09:46:54 +02:00
Péter Szilágyi
499d63f706
Merge pull request #2456 from bas-vk/rpc-arg-whitespace
...
cmd/utils: strip excessive whitespace from api command line arguments
2016-04-14 18:26:56 +03:00
Péter Szilágyi
5f917715c5
Merge pull request #2454 from karalabe/trace-fix
...
eth: fix single transaction tracing (run prev mutations)
2016-04-14 17:52:34 +03:00
Bas van Kervel
529897ea2b
cmd/utils: strip excessive whitespace from api command line arguments
2016-04-14 16:23:43 +02:00
Péter Szilágyi
53016c1225
eth, rpc: make trace configs optional
2016-04-14 15:10:29 +03:00
Péter Szilágyi
bbc77f488e
eth: fix single transaction tracing (run prev mutations)
2016-04-14 14:29:47 +03:00
Felix Lange
e50e3bea49
Merge pull request #2235 from fjl/chaindb-api-and-console-fixes
...
eth: add chaindbProperty to debug API (+ console fixes)
2016-04-13 13:05:29 +02:00
Felix Lange
bea56d84e5
internal/debug: add memStats and gcStats to API
2016-04-13 12:08:07 +02:00
Felix Lange
bcd8aeefdd
eth: add chaindbProperty to debug API
2016-04-13 12:08:07 +02:00
Felix Lange
05e257c22c
jsre: hide fields with prefix _ when pretty-printing
...
This makes web3 internals like _requestManager invisible.
2016-04-13 12:06:42 +02:00
Felix Lange
f08680985a
jsre: fix <tab><tab> completion magic
2016-04-13 12:06:42 +02:00
Felix Lange
5542b51b50
jsre: expose Do
2016-04-13 12:06:42 +02:00
Péter Szilágyi
b34b130fb5
Merge pull request #2450 from karalabe/fix-ios-kqueue
...
accounts: disable filesystem notifications on iOS
2016-04-13 12:48:51 +03:00
Péter Szilágyi
fd36448d6a
accounts: disable filesystem notifications on ios
2016-04-13 12:29:39 +03:00
Felix Lange
9d81f4fdd1
Merge pull request #2448 from fjl/jsre-bignum
...
jsre: print BigNumber objects with custom constructor as number
2016-04-12 18:52:40 +02:00
Felix Lange
4e85be0717
jsre: print BigNumber objects with custom constructor as number
2016-04-12 17:42:14 +02:00
Felix Lange
f460b0217f
Merge pull request #2446 from karalabe/console-unlock-fix
...
cmd/utils: fix accounts merge error on console unlock
2016-04-12 17:07:37 +02:00
Péter Szilágyi
a1f1c404c3
cmd/utils: fix accounts merge error on console unlock
2016-04-12 18:01:37 +03:00
Péter Szilágyi
1e9b504ee7
Merge pull request #2284 from fjl/accounts-addr-cache
...
accounts: cache key addresses
2016-04-12 17:51:09 +03:00
Péter Szilágyi
33e4f51749
Merge pull request #2444 from karalabe/gethrpctest-chainconfig-panic
...
cmd/gethrpctest: add missing chain configuration config field
2016-04-12 17:01:51 +03:00
Felix Lange
6498df7b02
accounts: ensure TimedUnlock does not override indefinite unlock timeout
2016-04-12 15:59:18 +02:00
Felix Lange
46df50be18
accounts: improve API and add documentation
...
- Sign takes common.Address, not Account
- Import/Export methods work with encrypted JSON keys
2016-04-12 15:59:18 +02:00
Felix Lange
91aaddaeb3
cmd/geth: add recovery procedure for AmbiguousAddrError
2016-04-12 15:59:18 +02:00
Felix Lange
ea005a0295
cmd/utils: fix --password on Windows
...
Text files created on Windows typically have \r\n line endings.
Trim them when reading password files.
2016-04-12 15:59:18 +02:00
Felix Lange
aca9d6a1fb
cmd/geth: print actual error when --unlock fails
2016-04-12 15:59:17 +02:00
Felix Lange
549f1add29
eth: report unlock errors to RPC clients
2016-04-12 15:59:12 +02:00
Felix Lange
6f1ca0bc91
accounts: add ErrDecrypt
2016-04-12 15:58:07 +02:00
Felix Lange
a9f26dcd0d
accounts: cache key addresses
...
In order to avoid disk thrashing for Accounts and HasAccount,
address->key file mappings are now cached in memory. This makes it no
longer necessary to keep the key address in the file name. The address
of each key is derived from file content instead.
There are minor user-visible changes:
- "geth account list" now reports key file paths alongside the address.
- If multiple keys are present for an address, unlocking by address is
not possible. Users are directed to remove the duplicate files
instead. Unlocking by index is still possible.
- Key files are overwritten written in place when updating the password.
2016-04-12 15:58:07 +02:00
Felix Lange
ef63e9af55
Godeps: add github.com/rjeczalik/notify
2016-04-12 15:58:07 +02:00
Felix Lange
ee1682ffe6
cmd/geth: add tests for account commands
2016-04-12 15:58:07 +02:00
Felix Lange
6cb08d8328
Godeps: add github.com/cspeare/cp
2016-04-12 15:58:06 +02:00
Felix Lange
46e8940b19
accounts: streamline API
...
- Manager.Accounts no longer returns an error.
- Manager methods take Account instead of common.Address.
- All uses of Account with unkeyed fields are converted.
2016-04-12 15:58:01 +02:00
Felix Lange
2dc20963e7
cmd/geth: move account commands to accountcmd.go
2016-04-12 15:56:49 +02:00
Felix Lange
4e6d8b348d
accounts: fix go vet warnings
2016-04-12 15:56:49 +02:00
Felix Lange
85e6c40c00
accounts, crypto: move keystore to package accounts
...
The account management API was originally implemented as a thin layer
around crypto.KeyStore, on the grounds that several kinds of key stores
would be implemented later on. It turns out that this won't happen so
KeyStore is a superflous abstraction.
In this commit crypto.KeyStore and everything related to it moves to
package accounts and is unexported.
2016-04-12 15:56:49 +02:00
Felix Lange
dff9b4246f
cmd/geth, cmd/utils: improve input handling
...
These changes make prompting behave consistently on all platforms:
* The input buffer is now global.
Buffering was previously set up for each prompt, which can cause weird
behaviour, e.g. when running "geth account update <input.txt" where
input.txt contains three lines. In this case, the first password
prompt would fill up the buffer with all lines and then use only the
first one.
* Print the "unsupported terminal" warning only once.
Now that stdin prompting has global state, we can use it to track
the warning there.
* Work around small liner issues, particularly on Windows.
Prompting didn't work under most of the third-party terminal emulators
on Windows because liner assumes line editing is always available.
2016-04-12 15:56:49 +02:00
Péter Szilágyi
aceaaa5178
eth: gracefully fail if chain config is missing
2016-04-12 16:48:43 +03:00
Péter Szilágyi
9027981280
cmd/gethrpctest: add missing chain configuration config field
2016-04-12 16:44:42 +03:00
Felix Lange
83877a0f9d
tests: remove eth, node, accounts dependencies
...
Unlocking the accounts in the test doesn't help with anything.
2016-04-12 15:34:39 +02:00
Jeffrey Wilcke
8627680e24
Merge pull request #2359 from bas-vk/rpc-optional-args
...
rpc: several fixes and support for optional arguments
2016-04-12 14:03:21 +02:00
Bas van Kervel
aa9fff3e68
rpc: various fixes/enhancements
...
rpc: be less restrictive on the request id
rpc: improved documentation
console: upgrade web3.js to version 0.16.0
rpc: cache http connections
rpc: rename wsDomains parameter to wsOrigins
2016-04-12 11:02:39 +02:00
Jeffrey Wilcke
934f587bd5
Merge pull request #2431 from bas-vk/js-preload
...
cmd/geth: add JS preload parameter
2016-04-12 11:00:42 +02:00
Jeffrey Wilcke
e456451a89
Merge pull request #2440 from karalabe/update-ethash
...
Update ethash
2016-04-11 20:03:47 +02:00
Péter Szilágyi
bf1f620343
eth: fix GPU miner chain config regression
2016-04-11 17:31:00 +03:00
Péter Szilágyi
701ac1ce6c
Godeps: pull in the ethash opencl fix
2016-04-11 17:14:32 +03:00
Bas van Kervel
3c5329599c
cmd/geth: add JS preload parameter
2016-04-11 13:32:26 +02:00
Péter Szilágyi
8abf06d378
Merge pull request #2430 from bas-vk/chaincmd
...
cmd/utils: bugfix where database is opened multiple times
2016-04-11 13:21:47 +03:00
Péter Szilágyi
a7161caedf
Merge pull request #2427 from bas-vk/pending-tx-console-format
...
console: use transaction output formatter for eth.pendingTransactions…
2016-04-11 12:34:48 +03:00
Péter Szilágyi
4b2492b614
Merge pull request #2423 from karalabe/abigen-support-arrays
...
accounts/abi/bind: support generating bindings for various arrays
2016-04-11 11:40:07 +03:00
Bas van Kervel
4081868452
cmd/utils: bugfix where database is opened multiple times
2016-04-07 12:49:00 +02:00
Bas van Kervel
18490d833c
console: use transaction output formatter for eth.pendingTransactions output
2016-04-06 11:27:05 +02:00
Péter Szilágyi
fc4fffd5ac
accounts/abi/bind: support generating bindings for various arrays
2016-04-05 18:20:50 +03:00
Jeffrey Wilcke
7e02105672
Merge pull request #2417 from fjl/rpc-go-winio
...
rpc: use go-winio instead of vendoring a named pipe implementation
2016-04-05 09:43:45 +02:00
Jeffrey Wilcke
ed92f116f7
Merge pull request #2407 from bas-vk/rpc-notifications
...
RPC pub sub
2016-04-05 09:43:32 +02:00
Jeffrey Wilcke
6a185531d2
Merge pull request #2416 from karalabe/kill-canary
...
core, miner: remove Frontier canary
2016-04-04 20:43:01 +02:00
Jeffrey Wilcke
8d8e2248b2
Merge pull request #2396 from obscuren/abi-slices
...
abi: support for input and output slices & removed support for implicit type conversion
2016-04-04 20:42:48 +02:00
Jeffrey Wilcke
a306e17a26
abi: removed implicit type casting & refactored type parsing
2016-04-04 20:30:59 +02:00
Jeffrey Wilcke
968d8ffe94
abi: accept output slices of all supported types
2016-04-04 20:30:59 +02:00
Jeffrey Wilcke
022cbd6800
abi: accept input slices of all supported types
2016-04-04 20:30:58 +02:00
Felix Lange
467bb7a719
rpc: use go-winio instead of vendoring a named pipe implementation
2016-04-04 13:56:17 +02:00
Péter Szilágyi
e9254bb0f9
core, miner: remove Frontier canary
2016-04-04 13:18:34 +03:00
Péter Szilágyi
3a2da31c3e
Merge pull request #2412 from fjl/p2p-eip8-enable
...
p2p: enable EIP-8 handshake sending
2016-04-04 13:10:48 +03:00
Jeffrey Wilcke
52dc7cb452
Merge pull request #2378 from obscuren/enable-jit-a-b
...
cmd/utils, miner: A/B testing JIT VM. Disabled for miners
2016-04-04 11:15:23 +02:00
Jeffrey Wilcke
f6f7e7a870
Merge pull request #2415 from karalabe/fix-missing-gastarget
...
cmd/geth: add missing gas target flag (fixing 0 convergence issue)
2016-04-04 11:14:04 +02:00
Péter Szilágyi
c90fc3503d
cmd/geth: add missing gas target flag (fixing 0 convergence issue)
2016-04-04 12:04:04 +03:00
Felix Lange
659c0cb9e8
p2p: enable EIP-8 handshake sending
...
With the Ethereum Homestead fork is now behind us, we can
assume that everyone runs an EIP-8 capable client.
2016-04-03 23:10:11 +02:00
Jeffrey Wilcke
96c7c39ae4
Merge pull request #2409 from fjl/geth-fixup-init
...
cmd/geth: fix startup with empty database
2016-04-02 11:40:25 +02:00
Felix Lange
cf842b3fe5
cmd/geth, eth: move --genesis deprecation warning to cmd/geth
...
This prevents display of the warning for --dev and --olympic.
2016-04-01 21:59:35 +02:00
Felix Lange
78b70d79ec
cmd/utils: fix geth startup with empty database
2016-04-01 21:59:23 +02:00
Bas van Kervel
f7328c5ecb
rpc: add pub/sub support
2016-04-01 18:26:35 +02:00
Jeffrey Wilcke
fb578f4550
Merge pull request #2405 from karalabe/abigen-default-methods
...
accounts/abi/bind: surface raw wrappers to access low level ops
2016-04-01 15:42:05 +02:00
Jeffrey Wilcke
8b2aca96c5
Merge pull request #2404 from obscuren/common-hash-json-length-validation
...
common: added Hash unmarshal json length validation
2016-04-01 14:53:38 +02:00
Jeffrey Wilcke
bbeaab7e64
cmd/utils, miner: A/B testing JIT VM. Disabled for miners
...
This PR introduces a 10% probability that you'll run the client with the
JIT enabled testing the new client and helps us potentially catch
errors when reported.
This feature is **disabled** for miners (disabling the JIT completely).
The JIT can however be force for miners if they enable both --jitvm and
--forcejit.
2016-04-01 13:44:58 +02:00
Jeffrey Wilcke
be44651523
Merge pull request #2402 from obscuren/eth-sign-fix
...
eth: enforce signing hashes using eth_sign instead of arbitrary data
2016-04-01 13:42:48 +02:00
Jeffrey Wilcke
c58079461b
Merge pull request #2281 from obscuren/configurable-genesis
...
core: homestead chain configuration & artificial gas floor target mining flag
2016-04-01 13:42:19 +02:00
Jeffrey Wilcke
d63e29241d
common: added Hash unmarshal json length validation
2016-04-01 12:56:54 +02:00
Péter Szilágyi
4097478884
accounts/abi/bind: surface raw wrappers to access low level ops
2016-04-01 13:07:05 +03:00
Jeffrey Wilcke
1f3596c25a
core: transition db now also returns the required gas amount
...
Exposes some core methods to transition and compute new state
information and adds an additional return value to the transition db
method to fetch required gas for that particular message (excluding gas
refunds from any SSTORE[X] = 0 and SUICIDE.
Fixes #2395
2016-04-01 01:01:10 +02:00
Jeffrey Wilcke
9055c16efa
accounts/a/b/backends, core: chain maker homestead block set to 0
...
The chain maker and the simulated backend now run with a homestead phase
beginning at block 0 (i.e. there's no frontier).
This commit also fixes up #2388
2016-04-01 01:01:10 +02:00
Jeffrey Wilcke
f0cbebb19f
core: added basic chain configuration
...
Added chain configuration options and write out during genesis database
insertion. If no "config" was found, nothing is written to the database.
Configurations are written on a per genesis base. This means
that any chain (which is identified by it's genesis hash) can have their
own chain settings.
2016-04-01 01:01:10 +02:00
Jeffrey Wilcke
916fe11241
eth: enforce signing hashes using eth_sign instead of arbitrary data
2016-04-01 00:43:14 +02:00
Péter Szilágyi
10d3466c93
Merge pull request #2383 from karalabe/goabi-exclusions-duplicates
...
accounts/abi/bind, cmd/abigen: dedup structs, exclude patterns
2016-03-31 19:29:31 +03:00
Jeffrey Wilcke
db739b506a
Merge pull request #2399 from karalabe/fix-trace-json-output
...
eth: fix accidental nil panic on nil errors
2016-03-31 17:39:21 +02:00
Péter Szilágyi
4326061e35
eth: fix accidental nil panic on nil errors
2016-03-31 18:26:25 +03:00
Péter Szilágyi
f115f077d7
Merge pull request #2398 from karalabe/fix-trace-json-output
...
eth: manually convert errors to strings on the trace API (json cannot)
2016-03-31 17:59:28 +03:00
Péter Szilágyi
6c670eff01
eth: manually convert errors to strings on the trace API (json cannot)
2016-03-31 17:41:26 +03:00
Péter Szilágyi
4ab593c5a1
accounts/abi/bind: support account slices, drop hash type
2016-03-31 12:48:50 +03:00
Péter Szilágyi
c2bbff6116
accounts/abi/bind: merge all tests into a single suite
2016-03-31 12:45:50 +03:00
Péter Szilágyi
787d688c2f
accounts/abi/bind: use anonymous ephemeral call result structs
2016-03-31 12:45:30 +03:00
Péter Szilágyi
b813e4d411
accounts/abi/bind, cmd/abigen: dedup structs, exclude patterns
2016-03-26 11:43:09 +02:00
Jeffrey Wilcke
798e4fb4ed
Merge pull request #2381 from karalabe/fix-abigen-tuples
...
accounts/abi/bind: fix double pointer in generated code
2016-03-25 17:17:43 +01:00
Péter Szilágyi
9b4a45f6e8
accounts/abi/bind: fix double pointer in generated code
2016-03-25 15:09:06 +02:00
Péter Szilágyi
cfb3a8ea8f
Merge pull request #2357 from karalabe/abi-binding-generator
...
accounts/abi/bind: Go ABI binding generator
2016-03-24 17:35:42 +02:00
Péter Szilágyi
73308dbe0e
accounts/abi/bind, cmd/abigen: port to templates, bind to solidity
2016-03-24 17:09:45 +02:00
Péter Szilágyi
86cfc22c79
accounts/abi/bind: constructor, auth utils and various backends
2016-03-24 14:15:32 +02:00
Péter Szilágyi
72826bb5ad
accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABI
2016-03-24 14:15:18 +02:00
Jeffrey Wilcke
75c86f8646
Merge pull request #2141 from obscuren/evm-init
...
core, core/vm, tests: changed the initialisation behaviour of the EVM
2016-03-23 23:20:51 +01:00
Jeffrey Wilcke
0cfa21fc7f
core, eth, cmd: temporary work around for enabling the jit
...
This commit serves as a temporary workaround for enabling the jit until
the block customisation PR is merged in.
2016-03-23 23:02:44 +01:00
Jeffrey Wilcke
5f92606be2
eth/api: added root to the receipts
2016-03-23 23:02:44 +01:00
Jeffrey Wilcke
3601320ccd
eth, rpc: implemented block debugging rpc calls
...
Implemented the following block debugging RPC calls
* Block(RLP)
* BlockByFile(fileName)
* BlockByNumber(number)
* BlockByHash(hash)
2016-03-23 23:02:44 +01:00
Jeffrey Wilcke
14013372ae
core: Added EVM configuration options
...
The EVM is now initialised with an additional configured object that
allows you to turn on debugging options.
2016-03-23 23:02:42 +01:00
Jeffrey Wilcke
9866f19d6a
Merge pull request #2371 from hiddentao/fix_prompt_passwd_input
...
Strip extraneous carriage return from end of entered password
2016-03-23 18:06:27 +01:00
Ramesh Nair
6f30034413
cmd/utils: removed password line endings when not using liner.
2016-03-23 22:53:20 +08:00
Jeffrey Wilcke
77d21e472d
Merge pull request #2259 from bas-vk/http
...
rpc/http: improve request handling
2016-03-23 13:01:22 +01:00
Bas van Kervel
a7bae3b2a6
rpc/http: improve request handling
2016-03-23 11:27:08 +01:00
Jeffrey Wilcke
342ae7ce7d
core, core/vm, tests: changed the initialisation behaviour of the EVM
...
The EVM was previously initialised and created for every CALL, CALLCODE,
DELEGATECALL and CREATE. This PR changes this behaviour so that the same
EVM can be used through the session and beyond as long as the
Environment sticks around.
2016-03-23 00:04:00 +01:00
Péter Szilágyi
b3b110bc95
Merge pull request #2348 from obscuren/abi-variable-input
...
accounts/abi: Fixed bytes input accept []byte and variable input support
2016-03-17 10:21:34 +02:00
Péter Szilágyi
138e7af96c
Merge pull request #2354 from karalabe/miner-atomic-pending
...
eth, miner: fetch pending block/state in on go (data race)
2016-03-16 13:12:46 +02:00
Péter Szilágyi
8b6ae6bf86
Merge pull request #2355 from karalabe/abi-constant-functions-2
...
accounts/abi: handle the "constant" modifier for functions
2016-03-16 13:12:14 +02:00
Péter Szilágyi
270ea6eec3
accounts/abi: handle the "constant" modifier for functions
2016-03-16 11:24:16 +02:00
Péter Szilágyi
0228fb57cd
eth, miner: fetch pending block/state in on go (data race)
2016-03-16 11:23:26 +02:00
Péter Szilágyi
2855a93ede
Merge pull request #2341 from leijurv/patch-2
...
core: fixed various typos
2016-03-16 11:22:33 +02:00
Felix Lange
b5cee9738b
Merge pull request #2350 from leijurv/patch-3
...
core, eth: replace reorganiz with reorganis
2016-03-15 20:33:38 +01:00
Leif Jurvetson
434e4b31d8
core, eth: replace reorganiz with reorganis
2016-03-15 12:03:17 -07:00
Felix Lange
06fe6310a3
Merge pull request #2351 from leijurv/patch-4
...
core: various typos
2016-03-15 19:39:36 +01:00
Felix Lange
066d301520
Merge pull request #2352 from leijurv/patch-5
...
eth: various typos
2016-03-15 19:38:24 +01:00
Leif Jurvetson
bbbe2360d0
eth: various typos
2016-03-15 11:27:49 -07:00
Leif Jurvetson
b7bb2d8589
core: various typos
2016-03-15 11:08:18 -07:00
Leif Jurvetson
c7727191ae
core: fixed various typos
2016-03-15 09:12:03 -07:00
Jeffrey Wilcke
fe45210c55
accounts/abi: Fixed bytes input accept []byte and variable input support
...
Fixed up `[]byte` slice support such that `function print(bytes input)`
accepts `[]byte` as input and treats it as 1 element rather than a slice
of multiple elements.
Added support for variable length input parameters like `bytes` and
`strings`.
2016-03-15 14:10:39 +01:00
Péter Szilágyi
e189fb839c
Merge pull request #2327 from fjl/debug-fixes
...
cmd/utils, internal/debug: fixes for debugging
2016-03-15 11:01:31 +02:00
Jeffrey Wilcke
42c049e519
Merge pull request #2342 from obscuren/issue-templates
...
templates: added issue template
2016-03-14 23:45:53 +01:00
Jeffrey Wilcke
a0e2e22a4f
templates: added issue template
2016-03-14 23:39:21 +01:00
Péter Szilágyi
b8f4a48ada
Merge pull request #2337 from karalabe/upnp-error-hang
...
p2p/nat: fix #2291 , NAT discovery did't abort on failure
2016-03-14 17:17:21 +02:00
Péter Szilágyi
64c8e2f2ca
p2p/nat: fix #2291 , NAT discovery did't abort on failure
2016-03-14 17:08:15 +02:00
Felix Lange
c1343c8872
cmd/utils, internal/debug: show all stacks for 10x Ctrl-C induced panic
...
Go 1.6 only prints stacks for the current goroutine by default,
but for this panic we want to see all of them.
2016-03-12 00:59:37 +01:00
Felix Lange
cafdd5931e
internal/debug: don't disable heap profile collection by default
...
Setting runtime.MemProfileRate to 0 through the flag default
value makes it impossible to get an 'in-use' profile.
2016-03-12 00:41:34 +01:00
Jeffrey Wilcke
8a3ce5450a
Merge pull request #2311 from obscuren/future-proc-fix
...
core: added future proc mutex lock
2016-03-11 18:26:57 +01:00
Péter Szilágyi
08759b0aaf
Merge pull request #2322 from karalabe/headerchain-preformance-fixes
...
core: cache fresh headers and tds to avoid db trashing
2016-03-11 16:49:21 +02:00
Jeffrey Wilcke
558d18d2b0
core: added future proc mutex lock
...
Added a future lock which prevents the anything being added or removed
from or to the set when looping over the set of blocks. This fixes a nil
pointer in the range loop when trying to retrieve a block from the set
which was previously available but removed due to regular chain
processing.
Fixes #2305
2016-03-11 09:52:36 +01:00
Péter Szilágyi
c3a4874e5e
Merge pull request #2326 from karalabe/goleveldb-datarace-fix
...
Godeps: pull in the leveldb upstream write race fix
2016-03-11 10:30:46 +02:00
Péter Szilágyi
9ff07304a3
Godeps: pull in the leveldb upstream write race fix
2016-03-11 09:30:25 +02:00
Péter Szilágyi
daad2b2559
core: cache fresh headers and tds to avoid db trashing
2016-03-10 21:40:34 +02:00
Péter Szilágyi
850f41b374
Merge pull request #2321 from karalabe/downloader-throughput-datarace
...
eth/downloader: fix a throughput estimation data race
2016-03-10 20:38:55 +02:00
Jeffrey Wilcke
8b58cd0190
Merge pull request #2081 from zsfelfoldi/light-chain
...
core: create a header chain structure shared by full and light clients
2016-03-10 15:16:11 +01:00
zsfelfoldi
73d21ea6af
core: create a header chain structure shared by core.BlockChain and light.LightChain
2016-03-10 14:57:32 +01:00
Jeffrey Wilcke
bff9ceb6b8
Merge pull request #2301 from obscuren/uncle-fix
...
core: announce ChainSideEvent during reorg
2016-03-10 14:21:41 +01:00
Jeffrey Wilcke
6d3cd03a03
Merge pull request #2320 from karalabe/update-goleveldb
...
Godeps: update goleveldb to fix a compaction data race
2016-03-10 12:24:34 +01:00
Péter Szilágyi
e3f2b541f2
eth/downloader: fix a throughput estimation data race
2016-03-10 12:58:46 +02:00
Péter Szilágyi
ea19e61fba
Godeps: update goleveldb to fix a compaction data race
2016-03-10 12:57:59 +02:00
Péter Szilágyi
edd7aa054c
Merge pull request #2228 from karalabe/allocate-cache-to-chaindata
...
cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache
2016-03-09 10:43:07 +02:00
Péter Szilágyi
e90958cd29
cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache
2016-03-09 10:33:39 +02:00
Jeffrey Wilcke
ba3fb9e6f4
core: announce ChainSideEvent during reorg
...
Previously all blocks that were already in our chain were never re
announced as potential uncle block (e.g. ChainSideEvent). This is
problematic during mining where you want to gather as much possible
uncles as possible increasing the profit. This is now addressed in this
PR where during reorganisations of chains the old chain is regarded as
uncles.
Fixed #2298
2016-03-08 16:12:48 +01:00
Péter Szilágyi
05c86c2c9f
Merge pull request #2309 from bas-vk/passwd
...
console: allow optional password on the command line
2016-03-08 17:07:12 +02:00
Péter Szilágyi
31b4ff8cc1
Merge pull request #2310 from karalabe/ethash-future-cache
...
Godeps: pull in ethash future cache generator
2016-03-08 16:55:22 +02:00
Péter Szilágyi
119b724362
Godeps: pull in ethash future cache generator
2016-03-08 16:43:56 +02:00
Bas van Kervel
0fd251c7f7
console: allow optional password on the command line
2016-03-08 15:02:21 +01:00
Felix Lange
848e50d6fb
Merge pull request #2293 from kobigurk/develop
...
Adds --keystore
2016-03-08 09:32:33 +01:00
Felix Lange
bc63a3d282
Merge pull request #2292 from remyroy/fix-solc-win-path
...
Fix path problem with Solidity compile with filepath.Glob on Windows
2016-03-08 00:05:48 +01:00
Rémy Roy
de1831b6e9
common/compiler: fix path problem with filepath.Glob on Windows
2016-03-07 17:52:19 -05:00
Kobi Gurkan
627c2311fb
cmd/utils: add --keystore
2016-03-07 14:38:56 -08:00
Jeffrey Wilcke
d45f01d5f7
Merge pull request #2285 from karalabe/forward-empty-bodies
...
eth: forward empty body responses to the downlaoder
2016-03-03 15:02:10 +01:00
Péter Szilágyi
ae4982a365
eth: forward empty body responses to the downlaoder
2016-03-03 13:06:23 +02:00
Jeffrey Wilcke
41f35d7913
Merge pull request #2280 from bas-vk/js-cleanup
...
console: cleanup old autocompletations relics
2016-03-02 21:23:47 +01:00
Péter Szilágyi
5adc461d58
Merge pull request #2267 from karalabe/pending-state-events
...
core, miner: add PendingStateEvent to track non-log updates.
2016-03-02 11:24:27 +02:00
Bas van Kervel
789b9a9f16
console: cleanup old autocompletations relics
2016-03-01 18:27:08 +01:00
Péter Szilágyi
c0bf321ec8
Merge pull request #2278 from fjl/rpc-inproc-pipe
...
rpc: simplify inproc client
2016-03-01 14:54:52 +02:00
Felix Lange
e8e6df5159
rpc: simplify inproc client
...
Fixes #2277
2016-03-01 12:47:36 +01:00
Péter Szilágyi
8255afbc75
Merge pull request #2221 from karalabe/expost-key-decryption
...
crypto: expose key decryption method to parse a string direclty
2016-03-01 11:01:06 +02:00
Péter Szilágyi
f30b809f00
Merge pull request #2215 from bas-vk/estimategas
...
core: improved check for contract creation
2016-03-01 10:59:12 +02:00
Jeffrey Wilcke
7d598af493
params: updated homestead block
2016-02-29 16:19:32 +01:00
Jeffrey Wilcke
0d89e6c2f1
cmd/utils, params: homestead block
2016-02-29 15:04:55 +01:00
Jeffrey Wilcke
7cbcae3fac
Merge pull request #2269 from obscuren/repl-multi-line
...
cmd/geth: removed multiline support
2016-02-29 15:04:33 +01:00
Jeffrey Wilcke
8ce04ae8e7
Merge pull request #2273 from obscuren/lower-min-accepted-ga-price
...
cmd/utils: lower the min accepted gas price for relay and GPO
2016-02-29 14:52:29 +01:00
Jeffrey Wilcke
ab92678fb3
cmd/utils: lower the min accepted gas price for relay and GPO to 20 shannon
2016-02-29 14:45:47 +01:00
Jeffrey Wilcke
b1c1d09f83
Merge pull request #2272 from karalabe/fix-premature-downloader-exit
...
eth/downloader: fix premature exit before notifying all part fetchers
2016-02-29 13:49:01 +01:00
Péter Szilágyi
64ee5763ee
eth/downloader: fix premature exit before notifying all part fetchers
2016-02-29 14:22:28 +02:00
Péter Szilágyi
b534106cc8
core, miner: add PendingStateEvent to track non-log updates
2016-02-29 11:24:58 +02:00
Jeffrey Wilcke
cec92f5940
cmd/geth: removed multiline support
...
When attempting to paste very long lines of text the REPL goes
completely fubar, never completing the paste. Removing the multiline
support "fixes" this.
Long lines of text are usually pasted when deploying contracts and as it
stands right now makes creating new contracts from the REPL impossible.
2016-02-27 16:58:27 +01:00
Jeffrey Wilcke
4e7abcff30
Merge pull request #2266 from obscuren/up-gas-floor
...
params: settle the Pi vs Tau dispute
2016-02-26 19:26:30 +01:00
Jeffrey Wilcke
f954a8b666
params: settle the Pi vs Tau dispute
...
This commit increases the artificial gas floor to 4712388
2016-02-26 16:18:11 +01:00
Jeffrey Wilcke
85865a51b6
Merge pull request #2265 from fjl/downloader-mem
...
eth/downloader: fix header download limiting
2016-02-26 16:02:28 +01:00
Felix Lange
26e72b2ccd
eth/downloader: fix header download limiting
...
Fixes #2201
2016-02-26 15:24:51 +01:00
Péter Szilágyi
a6903ad6a5
Merge pull request #2260 from karalabe/ethash-cache-fixes
...
Godeps, eth, tests: update ethash, used shared for testing
2016-02-24 17:58:12 +02:00
Péter Szilágyi
45d08a8aa7
crypto: expose key encryption method, add ping-pong test
2016-02-24 16:28:25 +02:00
Péter Szilágyi
0969b35eec
crypto: code polish + ensure key file contents match with name
2016-02-24 16:27:32 +02:00
Péter Szilágyi
cda91ee180
crypto: expose key decryption method to parse a string direclty
2016-02-24 16:27:32 +02:00
Péter Szilágyi
66b148dd8f
Merge pull request #2251 from karalabe/increase-downlaoder-queue
...
eth/downloader: bump the download queue size to prevent starvation
2016-02-24 15:55:21 +02:00
Jeffrey Wilcke
483feb0d3f
Merge pull request #2242 from jimenezrick/upstream-crypto
...
Closes #2241 : Use Keccak-256 from golang.org/x/crypto/sha3 and mention explicitly
2016-02-24 12:57:57 +01:00
Péter Szilágyi
0a5ee08e2b
Godeps, eth, tests: update ethash, used shared for testing
2016-02-24 13:29:47 +02:00
Péter Szilágyi
1415669ac3
Merge pull request #2218 from karalabe/time-drift-warning
...
p2p/discover: NTP sanity check clock drift in case of expirations
2016-02-24 13:12:52 +02:00
Péter Szilágyi
1e62cd6c79
Merge pull request #2252 from karalabe/disable-metrics-metaops
...
ethdb: fully disable metrics if not requested (oops?)
2016-02-24 12:50:45 +02:00
Péter Szilágyi
ac954f48bd
p2p/discover: emphasize warning, add 10 min cooldown
2016-02-24 12:16:28 +02:00
Péter Szilágyi
b1908f6a16
psp/discovery: NTP sanity check clock drift in case of expirations
2016-02-24 12:14:15 +02:00
Péter Szilágyi
f1ddb1a7ad
ethdb: fully disable metrics if not requested (oops?)
2016-02-23 15:47:04 +02:00
Péter Szilágyi
7841f0cc09
Merge pull request #2147 from prasanna/add-vagrantfile
...
Added Vagrantfile so that developers can spin up a VM to build geth
2016-02-23 13:48:32 +02:00
Péter Szilágyi
93c0012000
eth/downloader: bump the download queue size to prevent starvation
2016-02-23 13:12:11 +02:00
Péter Szilágyi
b57a3f154f
Merge pull request #2234 from obscuren/tx-rpc-fix
...
eth: fixed homestead tx check
2016-02-23 10:29:25 +02:00
Péter Szilágyi
1f281dcaab
Merge pull request #2220 from karalabe/fix-rollback-lock
...
eth/downloader: fix partial rollback and ancestor lookup
2016-02-23 10:27:51 +02:00
Péter Szilágyi
3dca9cc550
Merge pull request #2095 from karalabe/trie-node-iterator
...
core/state, trie: add node iterator, test state/trie sync consistency
2016-02-23 10:26:25 +02:00
Ricardo Catalinas Jiménez
139f6a0f4c
generators: Don't generate params/protocol_params.go with +x bit
2016-02-21 22:46:32 +00:00
Ricardo Catalinas Jiménez
8f65444bf3
common/natspec: Remove old unnused file
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
53ce0a76d8
ethdb: Remove outdated README pointing to an old link
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
e6af65d02a
common: Remove dead code
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
fbf3b2ede2
common: Remove empty lines
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
3d971c5a34
crypto: Remove dead code
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
0c6665558a
crypto: Add backward compatible aliases for Sha3{,Hash}()
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
436fc8d76a
all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()
...
As we aren't really using the standarized SHA-3
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
c20d6e5e4e
crypto/sha3: Export Keccak-256 hash function
...
This hash function is slightly different from the standarized NIST SHA-3
as both of them use different domain separation bits.
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
5387ad760f
crypto/sha3: Remove import path checking from vendored code
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
e4b138a593
crypto/sha3: Copy latest code from "golang.org/x/crypto/sha3"
...
Revision: 1f22c0103821b9390939b6776727195525381532
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
0a1da69fac
crypto/sha3: Delete old copied code
2016-02-21 22:34:34 +00:00
Jeffrey Wilcke
c616391df2
eth: fixed homestead tx check
...
When a block is queried for retrieval we should add a check whether the
block falls within the frontier rules. If we'd always use `From`
retrieving transaction might fail. This PR temporarily changes
everything to `FromFrontier` (safe!).
2016-02-20 12:39:41 +01:00
Jeffrey Wilcke
f8d98f7fcd
Merge pull request #2116 from obscuren/homestead
...
core, core/vm: consensus changes necessary for the homestead release
2016-02-19 14:41:57 +01:00
Felix Lange
c305005d83
Merge pull request #2227 from bas-vk/mathrandom
...
console: seed random number generator
2016-02-19 13:17:10 +01:00
Bas van Kervel
6777531a2d
console: seed random number generator
2016-02-19 12:55:31 +01:00
Jeffrey Wilcke
17649edd85
Merge pull request #2226 from fjl/eip-8
...
p2p, p2p/discover: EIP-8 changes
2016-02-19 11:53:50 +01:00
Felix Lange
7d8155714b
p2p: EIP-8 changes
2016-02-19 11:14:48 +01:00
Felix Lange
ee1debda53
p2p/discover: EIP-8 changes
2016-02-19 11:14:42 +01:00
Felix Lange
bb07ce3eed
rlp: add "tail" struct tag
2016-02-19 11:14:29 +01:00
Péter Szilágyi
216729009b
eth/downloader: fix partial rollback and ancestor lookup
2016-02-19 11:17:02 +02:00
Jeffrey Wilcke
5b283663b4
core: Added new TD strategy which mitigate the risk for selfish mining
...
Assuming the following scenario where a miner has 15% of all hashing
power and the ability to exert a moderate control over the network to
the point where if the attacker sees a message A, it can't stop A from
propagating, but what it **can** do is send a message B and ensure that
most nodes see B before A. The attacker can then selfish mine and
augment selfish mining strategy by giving his own blocks an advantage.
This change makes the time at which a block is received less relevant
and so the level of control an attacker has over the network no longer
makes a difference.
This change changes the current td algorithm `B_td > C_td` to the new
algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`.
2016-02-18 10:12:13 +01:00
Jeffrey Wilcke
b6d88a0e9f
core, core/vm, crypto: fixes for homestead
...
* Removed some strange code that didn't apply state reverting properly
* Refactored code setting from vm & state transition to the executioner
* Updated tests
2016-02-18 10:11:48 +01:00
Jeffrey Wilcke
4f4d2b6474
tests: updated homestead tests
2016-02-18 10:08:18 +01:00
Gustav Simonsson
371871d685
parmas, crypto, core, core/vm: homestead consensus protocol changes
...
* change gas cost for contract creating txs
* invalidate signature with s value greater than secp256k1 N / 2
* OOG contract creation if not enough gas to store code
* new difficulty adjustment algorithm
* new DELEGATECALL op code
2016-02-18 10:08:11 +01:00
Jeffrey Wilcke
aa36a6ae4f
Merge pull request #2206 from fjl/update-deps
...
Godeps: update all dependencies
2016-02-17 13:46:30 +01:00
Péter Szilágyi
b8d59d9c98
core/state, trie: switch iterator panics to error fields
2016-02-16 12:37:00 +02:00
Péter Szilágyi
151c7bef41
core/state, trie: node iterator reports parent hashes too
2016-02-16 12:21:08 +02:00
Péter Szilágyi
5a057a8ded
core/state, trie: surface iterator entry hashes
2016-02-16 12:21:08 +02:00
Péter Szilágyi
7e29b0b5b4
core/state, trie: add node iterator, test state/trie sync consistency
2016-02-16 12:21:08 +02:00
Bas van Kervel
0ff2adb21b
core: improved check for contract creation
2016-02-16 10:52:46 +01:00
Felix Lange
6ba7bbbe29
jsre: include constructor properties in auto-completion
2016-02-15 16:43:25 +01:00
Felix Lange
ae5bc89cad
cmd/geth, jsre: improve auto-completion
2016-02-15 15:03:26 +01:00
Prasanna Pendse
3ab1fb0215
Added Vagrantfile so that developers can spin up a VM to build geth
2016-02-14 21:48:35 -05:00
Jeffrey Wilcke
4f28c5b69d
Merge pull request #2210 from obscuren/abi-typed-array
...
accounts/abi: support for typed array
2016-02-14 19:13:48 +01:00
Jeffrey Wilcke
6fe917ecb8
accounts/abi: support for typed array
...
Added support for fixed size and arbitrary length byte arrays to be
marshallable in fixed size (typed) byte slices.
2016-02-14 18:56:56 +01:00
Péter Szilágyi
cb85923828
Merge pull request #2205 from obscuren/pending-filters
...
eth/filters: ✨ pending logs ✨
2016-02-13 14:53:59 +02:00
Péter Szilágyi
770b29fd80
Merge pull request #2175 from karalabe/refactor-http-rpc
...
cmd, common, node, rpc: move HTTP RPC into node, drop singleton aspect
2016-02-13 14:53:48 +02:00
Jeffrey Wilcke
987c1a595a
eth/filters: ✨ pending logs ✨
...
Pending logs are now filterable through the Go API. Filter API changed
such that each filter type has it's own bucket and adding filter
explicitly requires you specify the bucket to put it in.
2016-02-13 13:14:02 +01:00
Felix Lange
fdb936ee95
crypto/ecies: make authenticated shared data work
...
The s2 parameter was not actually written to the MAC.
2016-02-12 09:49:18 +01:00
Felix Lange
2abf1a36b9
cmd/geth: enable multi-line mode
...
This was requested by some users earlier but liner didn't support
it at the time. It does now.
2016-02-12 02:41:29 +01:00
Felix Lange
4063d30b5e
cmd/geth: gofmt js.go and rename ethereum.js to web3.js
...
Fixing the filename matters now because it will actually show
up in JS backtraces.
2016-02-12 02:20:18 +01:00
Felix Lange
2680e23b15
jsre: fix pretty printer for upstream otto change
2016-02-12 02:19:52 +01:00
Péter Szilágyi
d6c6bcc9f3
cmd/geth: update monitor to new termui code
2016-02-11 16:46:28 +02:00
Péter Szilágyi
b019f3ee29
Godeps: update all dependencies to latest code
2016-02-11 16:16:52 +02:00
Jeffrey Wilcke
b05e472c07
Merge pull request #2192 from obscuren/runtime-abi-fixes
...
account/abi, vm/runtime: abi fixes & simplified runtime calling mechanism
2016-02-11 11:44:01 +01:00
Jeffrey Wilcke
6cace73bea
core/vm/runtime: simplified runtime calling mechanism
...
Implemented `runtime.Call` which uses - unlike Execute - the given state
for the execution and the address of the contract you wish to execute.
Unlike `Execute`, `Call` requires a config.
2016-02-11 10:17:16 +01:00
Jeffrey Wilcke
ecc876cec0
accounts/abi: fixed return tuple and string, bytes return type parsing
...
Removed old unmarshalling of return types: `abi.Call(...).([]byte)`.
This is now replaced by a new syntax:
```
var a []byte
err := abi.Call(&a, ...)
```
It also addresses a few issues with Bytes and Strings and can also
handle both fixed and arbitrary sized byte slices, including strings.
2016-02-11 10:16:38 +01:00
Péter Szilágyi
537774e049
Merge pull request #2195 from obscuren/gpo-rpc
...
eth: Added GPO to suggest default gas prices
2016-02-11 10:36:37 +02:00
Péter Szilágyi
1cc4bd76db
Merge pull request #2193 from karalabe/sync-state-reports
...
eth, eth/downloader, jsre: surface state sync progress through the API
2016-02-10 20:20:59 +02:00
Jeffrey Wilcke
725f2a4cf7
eth: Added GPO to suggest default gas prices
...
This PR fixes a regression of the RPC where the default gas price that
was being used for transaction wasn't properly using the GPO. This PR
adds the GPO back to suggest gas prices rather than the hardcoded
default of 10000000000000.
Closes #2194
2016-02-10 16:50:50 +01:00
Péter Szilágyi
59cd60b266
eth, eth/downloader, jsre: surface state sync progress through the API
2016-02-10 14:30:41 +02:00
Péter Szilágyi
be79b4aacb
Merge pull request #2189 from karalabe/fix-nil-miner
...
eth, miner: move the public miner api into eth to access etherbase
2016-02-09 16:38:00 +02:00
Péter Szilágyi
dda5af0e6c
eth, miner: move the public miner api into eth to access etherbase
2016-02-09 16:03:04 +02:00
Péter Szilágyi
df75dbfd68
cmd, node, rpc: readd inproc RPC client, expose via node
2016-02-09 14:10:40 +02:00
Péter Szilágyi
900e124bee
cmd, common, node, rpc: rework naming convention to canonical one
2016-02-09 13:24:42 +02:00
Péter Szilágyi
8b5b635db7
Merge pull request #2184 from karalabe/fix-fastsync-state-serializer-bug
...
eth/downloader: raise pending state limit that prevented concurrency
2016-02-09 12:14:48 +02:00
Péter Szilágyi
f1ec226d80
eth/downloader: raise pending state limit that prevented concurrency
2016-02-08 14:57:02 +02:00
Péter Szilágyi
856b9e9c50
Merge pull request #2183 from bas-vk/issue2180
...
eth_sendTransaction, error not reported
2016-02-08 12:41:39 +02:00
Bas van Kervel
5fb68f4b39
eth: sendTransaction would not report the error when tx could not be added to tx pool
2016-02-08 11:11:07 +01:00
Jeffrey Wilcke
707ac67bab
Merge pull request #2106 from obscuren/out-of-bound-logs
...
eth/filters: added notifications for out of bound log events
2016-02-06 01:11:42 +01:00
Jeffrey Wilcke
68dda34905
eth/filters: added notifications for out of bound log events
...
Out of Bound log events are events that were removed due to a fork. When
logs are received the filtering mechanism should check for the `removed`
field on the json structure.
2016-02-05 16:55:27 +01:00
Péter Szilágyi
7486904b92
cmd, node, rpc: move websockets into node, break singleton
2016-02-05 16:53:47 +02:00
Jeffrey Wilcke
7d2d141b34
Merge pull request #2178 from isghe/fix_typo
...
cmd/utils: fix jspath flag typo
2016-02-05 15:37:42 +01:00
Isidoro Ghezzi
cf47ef12d3
cmd/utils: fix jspath flag typo
2016-02-05 15:32:00 +01:00
Péter Szilágyi
a13bc9d7a1
cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspect
2016-02-05 13:45:36 +02:00
Péter Szilágyi
ba7c125153
Merge pull request #2168 from karalabe/move-rpc-into-node
...
cmd, common, node, rpc: move IPC into the node itself
2016-02-05 11:33:24 +02:00
Péter Szilágyi
2128289631
Merge pull request #2171 from karalabe/rpc-modules-fix
...
rpc: add jsonrpc version to module request, use json types
2016-02-05 11:33:10 +02:00
Péter Szilágyi
6b939fbeaa
rpc: add jsonrpc version to module request, use json types
2016-02-04 16:55:50 +02:00
Péter Szilágyi
188ab928c3
cmd, common, node, rpc: move IPC into the node itself
2016-02-04 11:23:15 +02:00
Jeffrey Wilcke
3274db19c7
Merge pull request #2169 from karalabe/fix-http-rpc-method
...
rpc: allow RPC requests on GET too
2016-02-03 23:34:36 +01:00
Péter Szilágyi
a50bccc642
Merge pull request #2134 from karalabe/save-state-writes
...
core/state, trie: don't leak database writes before commit
2016-02-03 10:56:21 +02:00
Péter Szilágyi
fbbedb4c03
Merge pull request #2154 from karalabe/rpc-fixes
...
cmd, eth, rpc: fix some RPC issues with pending blocks
2016-02-03 10:50:34 +02:00
Péter Szilágyi
5da7ec7c18
cmd, eth, rpc: fix some RPC issues with pending blocks
2016-02-03 10:35:59 +02:00
Péter Szilágyi
a8fd0de0d3
Merge pull request #2156 from ppratscher/add_replay_tx
...
core/vm, rpc/api: added debug_replayTransaction RPC call
2016-02-03 10:34:52 +02:00
Péter Szilágyi
2e2f093ec2
Merge pull request #2167 from obscuren/abi-event-fixes
...
account/abi: implements event parsing
2016-02-03 10:34:27 +02:00
Péter Szilágyi
da645f007b
Merge pull request #2166 from obscuren/contrib
...
CONTRIBUTING: Added a feature section
2016-02-03 10:34:16 +02:00
Péter Szilágyi
72c255caef
rpc: allow RPC requests on GET too
2016-02-03 00:50:02 +02:00
Péter Szilágyi
db056eeafe
Merge pull request #2170 from karalabe/fix-miner-registration
...
miner: register newly created remote agent in the API
2016-02-03 00:09:20 +02:00
Péter Szilágyi
9aa7158057
miner: register newly created remote agent in the API
2016-02-02 20:22:21 +02:00
Jeffrey Wilcke
1894c9239f
CONTRIBUTING: Added a feature section
2016-02-02 15:44:27 +01:00
Jeffrey Wilcke
bddf8f76c8
account/abi: implements event parsing
...
Implementation of basic event parsing and its input types. This
separates methods and events and fixes an issue with go type parsing and
validation.
2016-02-02 15:28:59 +01:00
Peter Pratscher
15780ead07
core/vm, rpc/api: renamed to debug.replayTransaction, migrated to new RPC, integrated feedback
...
Integrated code review suggestions
Integrated last review comments
2016-02-02 15:20:18 +01:00
Jeffrey Wilcke
6005dcef5b
Merge pull request #2098 from karalabe/rpc-txpool-queue-inspection
...
core, eth, rpc/api: rpc method to inspect the txpool queue
2016-02-02 10:53:23 +01:00
Péter Szilágyi
d3642b0715
core, eth, rpc/api: rpc method to inspect the txpool queue
2016-02-01 14:58:14 +02:00
Jeffrey Wilcke
f85212aa86
Merge pull request #2146 from fjl/discover-win32-large-packets
...
p2p/discover: fix Windows-specific issue for larger-than-buffer packets
2016-02-01 11:36:31 +01:00
Péter Szilágyi
d951ff300e
Merge pull request #2165 from karalabe/gmp-dep-master-alpine
...
containers/docker/master-alpine: add the legacy gmp lib back for now
2016-01-31 16:23:47 +02:00
Péter Szilágyi
0781fd7aa0
containers/docker/master-alpine: add the legacy gmp lib back for now
2016-01-31 16:19:55 +02:00
Péter Szilágyi
aed25640a4
Merge pull request #2164 from karalabe/add-alpine-images
...
containers: regroup and add Alpine images (31 MB)
2016-01-31 15:08:52 +02:00
Péter Szilágyi
f9b2fd79e8
containers: regroup and add Alpine images (31 MB)
2016-01-30 20:55:44 +02:00
Jeffrey Wilcke
528dcc3814
Merge pull request #2151 from fjl/debug-api
...
internal/debug: APIs for profiling and tracing
2016-01-28 16:11:24 +01:00
Jeffrey Wilcke
ae1a137ce7
Merge pull request #2143 from karalabe/fix-transaction-sort-2
...
core, core/types, miner: fix transaction nonce-price combo sort
2016-01-28 16:11:14 +01:00
Felix Lange
3750d835a1
internal/debug: APIs for profiling and tracing
...
The debug package provides an RPC wrapper for glog settings and the
debugging facilities of the Go runtime. They can be triggered through
both command line flags and the IPC listener.
2016-01-28 13:36:11 +01:00
Felix Lange
e287b56b69
logger/glog: clean up flag getters
2016-01-27 00:51:14 +01:00
Felix Lange
a411fe7e6e
logger/glog: fix TraceLocation.Set("")
2016-01-27 00:51:14 +01:00
Felix Lange
5728dd381d
rpc: fix success response encoding for null return value
...
The "result" field of JSON-RPC 2.0 responses was omitted
if the result was nil, causing exceptions in web3.js.
2016-01-27 00:06:37 +01:00
Jeffrey Wilcke
63e76482ac
Merge pull request #2140 from obscuren/rpc2-console
...
Rpc2 console
2016-01-26 14:01:00 +01:00
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
2016-01-26 13:51:50 +01:00
Felix Lange
f2ab351e8d
Merge pull request #2136 from fjl/glog-prefix
...
logger/glog: improve vmodule
2016-01-25 23:35:25 +01:00
Felix Lange
2871781f64
p2p/discover: fix Windows-specific issue for larger-than-buffer packets
...
On Windows, UDPConn.ReadFrom returns an error for packets larger
than the receive buffer. The error is not marked temporary, causing
our loop to exit when the first oversized packet arrived. The fix
is to treat this particular error as temporary.
Fixes : #1579 , #2087
Updates: #2082
2016-01-22 23:44:25 +01:00
Felix Lange
6e6931ef73
Merge pull request #2145 from caktux/develop
...
separate and optimize Dockerfile for master and develop
2016-01-22 21:55:13 +01:00
Péter Szilágyi
a2dc074b1d
core, core/types, miner: fix transaction nonce-price combo sort
2016-01-22 12:33:34 +02:00
caktux
896c134d30
separate and optimize Dockerfile for master and develop
2016-01-22 04:03:41 -05:00
Felix Lange
e4d794851b
node, rpc/api: add debug_vmodule, move admin_verbosity to debug_verbosity
2016-01-21 13:37:38 +01:00
Felix Lange
0edcbc797f
logger/glog: add SetVmodule
2016-01-21 13:37:38 +01:00
Felix Lange
a15b02320e
logger/glog: add directory context to output and vmodule matching
...
This change allows setting the verbosity for directory prefixes
using the syntax:
--vmodule=eth/=6
2016-01-21 13:37:38 +01:00
Jeffrey Wilcke
78f1964095
Merge pull request #2115 from karalabe/vm-debug-storage
...
core/vm: resolve circular dependency to debug vm storage
2016-01-20 22:18:19 +01:00
Jeffrey Wilcke
7b11e94441
Merge pull request #2132 from bas-vk/console-sleep
...
console: add admin.sleep and admin.sleepBlocks
2016-01-20 22:17:46 +01:00
Péter Szilágyi
f3d4ce0d16
core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug
2016-01-20 16:06:28 +02:00
Péter Szilágyi
886478b18b
core/state, trie: don't leak database writes before commit
2016-01-20 12:09:24 +02:00
Felix Lange
e7f6798b59
Merge pull request #2130 from bas-vk/nodeinfo-format
...
Nodeinfo format Genesis and Header
2016-01-19 13:21:40 +01:00
Bas van Kervel
cdd34fcb16
console: add admin.sleep and admin.sleepBlocks
2016-01-19 12:30:33 +01:00
Bas van Kervel
6e7620afe0
eth: changed NodeInfo Genesis and Head types
2016-01-18 13:28:03 +01:00
Jeffrey Wilcke
5945a33350
Merge pull request #2119 from karalabe/statedb-batch-commit
...
core/state: always commit in batches, just finish if not needed later
2016-01-14 12:17:59 +01:00
Péter Szilágyi
2d5d6d9d0e
core/state: always commit in batches, just finish if not needed later
2016-01-13 12:04:03 +02:00
Péter Szilágyi
752c75fb21
core/vm: resolve circular dependency to debug vm storage
2016-01-11 18:21:39 +02:00
Felix Lange
1b8566a7b1
Merge pull request #2114 from karalabe/chain-maker-state-remake
...
core: fix invalid state reuse in chain maker based tests
2016-01-11 16:40:28 +01:00
Péter Szilágyi
e5b480b638
core: fix invalid state reuse in chain maker based tests
2016-01-11 16:53:06 +02:00
Felix Lange
0ab8a175d8
Merge pull request #2110 from LefterisJP/determining_home_for_ubuntu_core
...
common: Fix HomeDir detection
2016-01-08 14:24:49 +01:00
Lefteris Karapetsas
e2fdd33541
common: Fix HomeDir detection
...
I am working on porting geth to [Ubuntu Core](https://developer.ubuntu.com/en/snappy/https://developer.ubuntu.com/en/snappy/ ). I am testing geth on a Raspberry PI and for Ubuntu Core the $HOME directory is unique for each application. See [here](https://developer.ubuntu.com/en/snappy/guides/filesystem-layout ) for more information of their filesystem layout.
For some reason in Go `usr.HomeDir` returns a different value than `$HOME` in Ubuntu Core.
Adding this at the end of `HomeDir()`
```go
fmt.Printf("at HomeDir, user.HomeDir = %s and $HOME is %s\n", usr.HomeDir, os.Getenv("HOME"))
```
gives the following output
```
at HomeDir, user.HomeDir = /home/ubuntu and $HOME is /home/ubuntu/apps/geth.sideload/IJcODREBYbHO
```
With this commit, I propose giving precedence to the `$HOME` environment variable as is also suggested by the [homedir](https://github.com/mitchellh/go-homedir/blob/master/homedir.go ) project.
2016-01-08 13:36:37 +01:00
Jeffrey Wilcke
32226f1b0c
Merge pull request #2097 from karalabe/block-state-checks
...
core, eth/downloader: ensure state presence in ancestor lookup
2016-01-05 12:26:38 +01:00
Jeffrey Wilcke
a7fc4fa9b7
Merge pull request #2101 from karalabe/delete-outoffund-transactions
...
core: transaction invalidation and reorganization fixes
2016-01-05 12:26:28 +01:00
Péter Szilágyi
649787a9bf
core: fix transaction reorg issues within the tx pool
2016-01-05 11:22:59 +02:00
Péter Szilágyi
9e011ff1cd
core, eth/downloader: ensure state presence in ancestor lookup
2016-01-04 16:27:23 +02:00
Felix Lange
36137623ed
Merge pull request #2099 from karalabe/fix-throttling-test
...
eth/downloader: throttling tests are time-sensitive, don't run parallel
2015-12-30 13:55:03 +01:00
Péter Szilágyi
1f39746886
eth/downloader: throttling tests are time-sensitive, don't run parallel
2015-12-30 14:42:21 +02:00
Jeffrey Wilcke
dbbcf558e2
Merge pull request #2064 from fjl/remove-common-rlp
...
common: remove old RLP implementation, Value and ExtPackage
2015-12-18 20:26:19 +01:00
Jeffrey Wilcke
4811409e99
Merge pull request #2084 from bas-vk/rpcnilptr
...
console crash on nil ptr
2015-12-18 20:25:55 +01:00
Bas van Kervel
3c9a2c752f
console: bugfix that causes the console to crash when connection to an endpoint without the personal api enabled
2015-12-18 15:30:08 +01:00
Jeffrey Wilcke
fd69d2b7a8
Merge pull request #2019 from zsfelfoldi/light-state
...
Light state
2015-12-18 12:40:01 +01:00
Felix Lange
e6fb69296e
common: remove old RLP implementation, Value and ExtPackage
...
In order to make this happen, kill all remaining trivial uses of
common/{rlp,value}.go. The non-trivial ones have been updated earlier.
2015-12-18 12:09:10 +01:00
Felix Lange
1b89bd5d26
core/state, core/types use package rlp for state, receipt serialisation
2015-12-18 12:09:10 +01:00
Felix Lange
9be5d5cd90
eth/downloader: fix negative balance issue in tests
...
The test chain generated by makeChainFork included invalid uncle
headers, crashing the generator during the state commit.
The headers were invalid because they used the iteration counter as the
block number, even though makeChainFork uses a block with number > 0 as
the parent. Fix this by introducing BlockGen.Number, which allows
accessing the actual number of the block being generated.
2015-12-18 12:09:10 +01:00
Jeffrey Wilcke
2baf1de00d
Merge pull request #1925 from fjl/p2p-dial-resolve
...
p2p: resolve incomplete dial targets
2015-12-18 11:31:55 +01:00
Felix Lange
b3f1f4c673
p2p/discover: attempt to deflake TestUDP_responseTimeouts
...
The test expected the timeout to fire after a matcher for the response
was added, but the timeout is random and fired sooner sometimes.
2015-12-17 23:44:56 +01:00
Felix Lange
6c41e675ec
p2p: resolve incomplete dial targets
...
This change makes it possible to add peers without providing their IP
address. The endpoint of the target node is resolved using the discovery
protocol.
2015-12-17 23:39:49 +01:00
Felix Lange
04c6369a09
p2p, p2p/discover: track bootstrap state in p2p/discover
...
This change simplifies the dial scheduling logic because it
no longer needs to track whether the discovery table has been
bootstrapped.
2015-12-17 23:38:54 +01:00
Felix Lange
d1f507b7f1
p2p/discover: support incomplete node URLs, add Resolve
2015-12-17 23:38:54 +01:00
zsfelfoldi
ef422ee1e1
light: implemented odr-capable trie and state structures
2015-12-17 16:07:54 +01:00
Jeffrey Wilcke
82a024d425
Merge pull request #1997 from zsfelfoldi/gasprice2
...
core: tx pool skip price validation for "owned" transactions
2015-12-17 12:45:45 +01:00
Jeffrey Wilcke
24f856ad6b
Merge pull request #2077 from karalabe/fix-header-query-duplication
...
eth: fix #2076 , where end of hash query was interpreted number query
2015-12-17 10:37:21 +01:00
Felix Lange
e640861704
Merge pull request #2061 from zsfelfoldi/rpc-context
...
rpc: optionally passing context argument to rpc v2 api methods
2015-12-16 11:12:06 +01:00
Péter Szilágyi
e51eeb8104
eth: fix #2076 , where end of hash query was interpreted number query
2015-12-16 08:44:13 +02:00
zsfelfoldi
f3aac71fad
rpc/v2: optionally passing context argument to rpc v2 api methods
2015-12-16 03:48:08 +01:00
zsfelfoldi
975c591261
core: tx pool skip price validation for "owned" transactions
2015-12-16 03:21:17 +01:00
Felix Lange
b9aedeab0b
Merge pull request #2072 from karalabe/admin-debug-apis
...
core, eth, node, rpc: port the admin and debug API
2015-12-15 11:33:18 +01:00
Felix Lange
9c636d2490
Merge pull request #2070 from karalabe/android-archives
...
Makefile, cmd/geth: support building Android archives
2015-12-14 21:32:00 +01:00
Péter Szilágyi
d8370a4e15
core, eth, node, rpc: port the admin and debug API
2015-12-14 19:36:51 +02:00
Felix Lange
fa187a366d
Merge pull request #2035 from bas-vk/rcp-v2-rebase
...
rpc: new RPC implementation with pub/sub support
2015-12-14 17:38:10 +01:00
Bas van Kervel
eae81465c1
rpc: new RPC implementation with pub/sub support
2015-12-14 16:34:05 +01:00
Péter Szilágyi
03f090b30b
Makefile, cmd/geth: support building Android archives
2015-12-14 14:28:14 +02:00
Jeffrey Wilcke
787d71d659
Merge pull request #2056 from fjl/fix-account-format
...
crypto: "Crypto" -> "crypto" in web3 key format
2015-12-10 10:45:00 +01:00
Felix Lange
b2ffb76ca2
Merge pull request #2058 from karalabe/geth-framework
...
Makefile, cmd/geth: assemble ios xcode frameworks
2015-12-09 18:04:27 +01:00
Péter Szilágyi
0e4deeb6e7
Makefile, cmd/geth: assemble ios xcode frameworks
2015-12-08 18:05:43 +02:00
Felix Lange
38ff815485
Merge pull request #2003 from obscuren/abi-calling
...
accounts/abi: added output parsing & added call mechanism
2015-12-07 23:24:41 +01:00
Felix Lange
659d6b9b7c
Merge pull request #2051 from karalabe/store-transaction-fastsync
...
core: write individual transactions and receipts too on fast sync
2015-12-07 23:24:15 +01:00
Felix Lange
032453b3e7
crypto: "Crypto" -> "crypto" in web3 key format
2015-12-07 17:01:29 +01:00
Jeffrey Wilcke
2a3322ea14
Merge pull request #2034 from karalabe/always-allow-dyndials
...
p2p: always allow dynamic dials if network not disabled
2015-12-07 11:26:05 +01:00
Péter Szilágyi
1cecda8333
core: write individual transactions and receipts too on fast sync
2015-12-04 15:30:59 +02:00
Péter Szilágyi
4dee2000a3
Merge pull request #2037 from fjl/no-libgmp
...
crypto/secp256k1: remove dependency on libgmp
2015-12-04 12:27:16 +02:00
Jeffrey Wilcke
fece1fa9be
Merge pull request #2024 from obscuren/exp-logs
...
core: added a new RemovedLogEvent
2015-12-03 22:27:44 +01:00
Felix Lange
02356b36d6
crypto/secp256k1: remove dependency on libgmp
...
Turns out we actually don't need it, USE_NUM_NONE works
because we also set USE_FIELD_INV_BUILTIN.
2015-12-03 21:12:13 +01:00
Felix Lange
6d3a924283
Merge pull request #2036 from karalabe/ios-arm64-cross
...
Makefile: support 64bit ARM iOS cross builds
2015-12-03 21:09:09 +01:00
Péter Szilágyi
9acec62cf8
Makefile: support 64bit ARM iOS cross builds
2015-12-03 20:33:24 +02:00
Péter Szilágyi
abb53644c6
p2p: always allow dynamic dials if network not disabled
2015-12-03 11:45:35 +02:00
Jeffrey Wilcke
3eebeae363
Merge pull request #2032 from karalabe/linux-arm64-cross
...
Makefile: enable 64-bit ARM builds on Linux
2015-12-02 21:27:52 +01:00
Péter Szilágyi
98d68cfa91
Makefile: enable 64-bit ARM builds on Linux
2015-12-02 16:57:15 +02:00
Jeffrey Wilcke
888e7bc765
Merge pull request #1862 from Gustav-Simonsson/libsecp256k1_ecdh
...
crypto, crypto/secp256k1: use libsecp256k1 for scalar multiplication
2015-12-02 13:19:33 +01:00
Felix Lange
8db9d44ca9
Merge pull request #2025 from karalabe/windows-account-unlock-testfix
...
accounts: increase re-lock timeout to account for slow CI servers
2015-12-01 13:23:31 +01:00
Péter Szilágyi
2d4c228933
Merge pull request #2022 from karalabe/multiversion-arm-builds
...
Makefile: build ARM v5/v6/v7, drop high API mobile clients
2015-12-01 13:40:22 +02:00
Jeffrey Wilcke
96d86740a1
Merge pull request #2005 from zsfelfoldi/light-trie
...
Trie error handling
2015-12-01 12:28:26 +01:00
Jeffrey Wilcke
23031b1554
Merge pull request #2021 from fjl/fix-etherbase-no-accounts
...
cmd/utils: restore starting geth without any accounts and etherbase
2015-12-01 12:21:25 +01:00
Péter Szilágyi
2e43414c79
accounts: increase re-lock timeout to account for slow CI servers
2015-12-01 13:20:43 +02:00
Jeffrey Wilcke
9901a40f04
core: added a new RemovedLogEvent
...
When a chain reorganisation occurs we collect the logs that were deleted
during the chain reorganisation. The removed logs are posted to the
event mux indicating that those were deleted during the reorg.
2015-12-01 12:12:30 +01:00
Felix Lange
d648e96b3d
cmd/utils: restore starting geth without any accounts and etherbase
...
Also remove some duplication around address/index parsing.
2015-12-01 11:55:52 +01:00
Péter Szilágyi
391ca61678
Makefile: build ARM v5/v6/v7, drop high API mobile clients
2015-12-01 12:40:55 +02:00
Jeffrey Wilcke
f801ec78ce
Merge pull request #2020 from bas-vk/issue2016
...
eth package creates new event mux
2015-12-01 11:13:57 +01:00
Bas van Kervel
61ca14bc44
eth: use global event mux instead
2015-12-01 11:01:40 +01:00
zsfelfoldi
52904ae32f
trie: added error handling
...
Created alternate versions of Trie and SecureTrie functions that can return a MissingNodeError (used by ODR services)
2015-12-01 01:38:32 +01:00
Jeffrey Wilcke
f4a6470a7b
Merge pull request #2015 from bas-vk/console-instance-name
...
console: fix instance name printed incorrect on start
2015-11-30 14:46:21 +01:00
Gustav Simonsson
c8ad64f33c
crypto, crypto/ecies, crypto/secp256k1: libsecp256k1 scalar mult
...
thanks to Felix Lange (fjl) for help with design & impl
2015-11-30 13:43:32 +01:00
Gustav Simonsson
27a50c8f4b
core/secp256k1: update libsecp256k1 Go wrapper and tests
2015-11-30 13:24:04 +01:00
Bas van Kervel
1ead43c88c
console: fix instance name printed incorrect on start
2015-11-30 09:49:10 +01:00
Felix Lange
66d47ced48
Merge pull request #2014 from karalabe/enable-ios-builds
...
Makefile: enable iOS experimental builds (fix prev omission)
2015-11-29 17:18:34 +01:00
Péter Szilágyi
9af4065243
Makefile: enable iOS experimental builds (fix prev omission)
2015-11-29 17:52:52 +02:00
Jeffrey Wilcke
a0d203a874
Merge pull request #2011 from karalabe/fix-hex-address
...
common: fix #2008 , wrong hex prefix check
2015-11-27 19:16:31 +01:00
Péter Szilágyi
18ea468cf8
common: fix #2008 , wrong hex prefix check
2015-11-27 19:32:46 +02:00
Jeffrey Wilcke
7dde2b902c
Merge pull request #1970 from karalabe/customizable-protocol-stacks
...
Customizable protocol stacks
2015-11-27 10:41:22 +01:00
Péter Szilágyi
3e1000fda3
cmd, eth, node, rpc, xeth: use single-instance services
2015-11-27 11:06:12 +02:00
Péter Szilágyi
1e806c4c77
cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks
2015-11-27 11:06:12 +02:00
Péter Szilágyi
8a44451edf
cmd: drop blocktest command, create gethrpctest program
2015-11-27 11:06:12 +02:00
Péter Szilágyi
9e1d9bff3b
node: customizable protocol and service stacks
2015-11-27 11:06:12 +02:00
Jeffrey Wilcke
ffe58bf5ab
Merge pull request #2002 from karalabe/ios-cross-builds
...
Makefile: add support for iOS cross compilation
2015-11-26 23:00:59 +01:00
Jeffrey Wilcke
de75d542f3
Merge pull request #1999 from karalabe/javascript-timer-argcheck
...
jrse: fix #1082 , fail if setTimeout/setInterval lack callback
2015-11-26 23:00:36 +01:00
Jeffrey Wilcke
b9db5b37f2
Merge pull request #2001 from obscuren/fixes
...
cmd, crypto: updated web3
2015-11-26 23:00:05 +01:00
Jeffrey Wilcke
b1e0143444
cmd, crypto: fixed nil public keys and updated web3
2015-11-26 13:38:53 +01:00
Jeffrey Wilcke
168d0e9e45
Merge pull request #1996 from obscuren/whisper-spam-fix
...
whisper: fixed broadcast race
2015-11-25 13:19:45 +01:00
Jeffrey Wilcke
a0bf2ea7e7
accounts/abi: added output parsing & added call mechanism
...
Added calling mechanism and return value parsing
2015-11-25 12:23:29 +01:00
Jeffrey Wilcke
5f0a4416db
whisper: fixed broadcast race
...
Whisper's expire and broadcast loops happen in two separate go routines.
Whenever an envelope is being expired it's removed from the set of
envelopes and it looses all information about the envelope, including
the "known hash". After the envelope has been removed it can be
re-accepted by a broadcasting peer putting back the envelope in the set
of envelopes. Since the envelope broadcast loop is separate of the
expire loop expired messages may be broadcast to other peer, resulting
in messages **never** being dropped.
This PR includes an expire check before adding new messages to the set
of envelopes.
2015-11-25 12:10:47 +01:00
Péter Szilágyi
83a22b457c
Makefile: support library build modes
2015-11-24 19:49:08 +02:00
Péter Szilágyi
2c42e54519
Makefile: add support for iOS cross compilation
2015-11-24 17:24:43 +02:00
Jeffrey Wilcke
b0fb48c389
Merge pull request #1988 from bas-vk/issue1971
...
miner: bugfix where blockhash in receipts and logs is left empty
2015-11-24 10:55:07 +01:00
Péter Szilágyi
f27e826b14
jrse: fix #1082 , fail if setTimeout/setInterval lack callback
2015-11-23 13:03:31 +02:00
Gustav-Simonsson
ae9e9efa31
Merge pull request #1991 from Gustav-Simonsson/common_tests
...
Update common test files
2015-11-23 10:26:21 +01:00
Jeffrey Wilcke
6bb29aebee
Merge pull request #1666 from obscuren/create-transaction
...
rpc/api, xeth: added signTransaction method
2015-11-20 21:36:56 +01:00
Jeffrey Wilcke
314c031ff2
Merge pull request #1995 from karalabe/parametrize-crosscompile-go
...
Makefile: individual platforms, configurable Go runtime
2015-11-20 21:10:21 +01:00
Péter Szilágyi
fea819f74f
Makefile: individual platforms, configurable Go runtime
2015-11-20 16:06:35 +02:00
Gustav Simonsson
220b0bf6e5
Update common test files
2015-11-20 12:53:36 +01:00
Jeffrey Wilcke
f16fab91c8
Merge pull request #1953 from karalabe/switch-to-fast-peers
...
eth/downloader: fetch data proportionally to peer capacity
2015-11-19 18:48:53 +01:00
Bas van Kervel
98cbe1356e
miner: bugfix were blockhash in receipts and logs is left empty
2015-11-19 16:02:49 +01:00
Péter Szilágyi
b6f5523bdc
eth/downloader: fetch data proportionally to peer capacity
2015-11-19 17:01:39 +02:00
Jeffrey Wilcke
4c2933ad82
Merge pull request #1993 from obscuren/remove-legalese
...
cmd/geth, cmd/utils: removed legalese
2015-11-19 15:29:49 +01:00
Jeffrey Wilcke
7399b138a8
Merge pull request #1923 from karalabe/cleanup-receipt-data-access
...
core, eth, miner, xeth: clean up tx/receipt db accessors
2015-11-19 15:28:15 +01:00
Jeffrey Wilcke
65bb07fb4e
Merge pull request #1980 from fjl/downloader-deliver-hang
...
eth/downloader: don't hang for spurious deliveries
2015-11-19 15:19:21 +01:00
Péter Szilágyi
e86e0ecdc8
core, eth, miner, xeth: clean up tx/receipt db accessors
2015-11-19 16:03:32 +02:00
Felix Lange
dd09af27af
eth/downloader: run tests in parallel
2015-11-19 14:18:35 +01:00
Felix Lange
b7b62d4b3c
eth/downloader: also drain stateCh, receiptCh in eth/61 mode
...
State and receipt deliveries from a previous eth/62+ sync can hang if
the downloader has moved on to syncing with eth/61. Fix this by also
draining the eth/63 channels while waiting for eth/61 data.
A nicer solution would be to take care of the channels in a central
place, but that would involve a major rewrite.
2015-11-19 14:18:35 +01:00
Felix Lange
db52a6a0ff
eth: remove workaround for asynchronous processing in the downloader
2015-11-19 14:18:34 +01:00
Felix Lange
900da3d800
eth/downloader: don't hang for spurious deliveries
...
Unexpected deliveries could block indefinitely if they arrived at the
right time. The fix is to ensure that the cancellation channel is
always closed when the sync ends, unblocking any deliveries. Also remove
the atomic check for whether a sync is currently running because it
doesn't help and can be misleading.
Cancelling always seems to break the tests though. The downloader
spawned d.process whenever new data arrived, making it somewhat hard to
track when block processing was actually done. Fix this by running
d.process in a dedicated goroutine that is tied to the lifecycle of the
sync. d.process gets notified of new work by the queue instead of being
invoked all the time. This removes a ton of weird workaround code,
including a hairy use of atomic CAS.
2015-11-19 14:18:34 +01:00
Jeffrey Wilcke
1c63d08ed1
cmd/geth, cmd/utils: removed legalese
...
Removed the legalese confirmation dialog. This closes #1992
2015-11-19 12:03:33 +01:00
Jeffrey Wilcke
ae37a8013d
Merge pull request #1917 from obscuren/validator-interface
...
core, eth, rpc: split out block validator and state processor
2015-11-19 10:57:00 +01:00
Jeffrey Wilcke
23f42d9463
Merge pull request #1964 from obscuren/evm-runtime
...
core/vm/runtime: added simple execution runtime
2015-11-18 17:39:27 +01:00
Jeffrey Wilcke
1372b991c3
core/vm/runtime: added simple execution runtime
...
The runtime environment can be used for simple basic execution of
contract code without the requirement of setting up a full stack and
operates fully in memory.
2015-11-18 16:50:20 +01:00
Jeffrey Wilcke
a1d9ef48c5
core, eth, rpc: split out block validator and state processor
...
This removes the burden on a single object to take care of all
validation and state processing. Now instead the validation is done by
the `core.BlockValidator` (`types.Validator`) that takes care of both
header and uncle validation through the `ValidateBlock` method and state
validation through the `ValidateState` method. The state processing is
done by a new object `core.StateProcessor` (`types.Processor`) and
accepts a new state as input and uses that to process the given block's
transactions (and uncles for rewords) to calculate the state root for
the next block (P_n + 1).
2015-11-18 14:24:42 +01:00
Felix Lange
4a938406dc
Merge pull request #1990 from karalabe/fix-whisper-autocomplete
...
rpc/api: fix #1986 , newIdentity autocomplete
2015-11-18 12:32:39 +01:00
Péter Szilágyi
53f28e71dc
rpc/api: fix #1986 , newIdentity autocomplete
2015-11-18 13:03:20 +02:00
Jeffrey Wilcke
10475f444c
Merge pull request #1984 from fjl/secp256k1-recover-id-verify
...
crypto/secp256k1: verify recovery ID before calling libsecp256k1
2015-11-17 19:39:42 +01:00
Jeffrey Wilcke
6ea05f5a54
rpc/api, xeth: added signTransaction method
...
SignTransaction creates a transaction but does submit it to the
network. SignTransaction returns a structure which includes the
transaction object details as well as the RLP encoded transaction that
could possibly be submitted by the SendRawTransaction method.
2015-11-17 17:51:05 +01:00
Felix Lange
e344e1d490
crypto/secp256k1: drop pkgsrc paths from CFLAGS
...
They cause compiler warnings for people who don't have these
directories. People with pkgsrc can add the directory through CGO_CFLAGS
instead.
2015-11-17 09:53:10 +01:00
Felix Lange
5159f8f649
crypto/secp256k1: raise internal errors as recoverable Go panic
2015-11-17 09:53:10 +01:00
Felix Lange
1b29aed128
crypto/secp256k1: verify recovery ID before calling libsecp256k1
...
The C library treats the recovery ID as trusted input and crashes
the process for invalid values, so it needs to be verified before
calling into C. This will inhibit the crash in #1983 .
Also remove VerifySignature because we don't use it.
2015-11-17 09:51:59 +01:00
Jeffrey Wilcke
9422eec554
Merge pull request #1976 from karalabe/enable-light-kdf
...
cmd/geth, cmd/utils: surface the light KDF flag to the CLI
2015-11-11 12:45:30 +01:00
Péter Szilágyi
9aa77a3769
cmd/geth, cmd/utils: surface the light KDF flag to the CLI
2015-11-10 15:47:19 +02:00
Jeffrey Wilcke
da6696862e
Merge pull request #1974 from karalabe/fix-rpc-regression
...
rpc/api: fix #1972 api regression (nil eth panic) in attach
2015-11-06 13:10:28 +01:00
Péter Szilágyi
6e5349880e
rpc/api: fix #1972 api regression (nil eth panic) in attach
2015-11-06 11:47:57 +02:00
Jeffrey Wilcke
6d09468cab
Merge pull request #1967 from karalabe/fix-filter-test-datarace
...
event/filter: fix data race in the test
2015-11-05 20:31:11 +01:00
Jeffrey Wilcke
2334ee97d0
Merge pull request #1963 from karalabe/fix-database-regression
...
eth: fix error casting regression during database open
2015-11-05 20:27:11 +01:00
Péter Szilágyi
5d89bbdda1
eth: fix error casting regression during database open
2015-11-05 16:59:16 +02:00
Péter Szilágyi
8e2bf42c46
event/filter: fix data race in the test
2015-11-05 16:55:53 +02:00
Felix Lange
76390ef892
Merge pull request #1966 from karalabe/fix-recover-noparam-panic
...
cmd/geth: fix recover command crash if no param is supplied
2015-11-05 13:15:23 +01:00
Felix Lange
636f67f232
Merge pull request #1969 from karalabe/fix-whisper-tests-datarace
...
whisper: fix datarace in expiration test
2015-11-05 13:03:36 +01:00
Felix Lange
eb11c0e597
Merge pull request #1965 from karalabe/fix-natto-test
...
jsre: fix #1876 , sleep too short on a slow test server
2015-11-05 13:03:06 +01:00
Felix Lange
ca4f6d0fdd
Merge pull request #1968 from karalabe/fix-json-tests-datarace
...
tests: fix data race in bad-block-report disabling during tests
2015-11-05 12:59:07 +01:00
Péter Szilágyi
60e0abb595
whisper: fix datarace in expiration test
2015-11-05 13:36:25 +02:00
Péter Szilágyi
9dc5de51a2
tests: fix data race in bad-block-report disabling during tests
2015-11-05 13:29:50 +02:00
Péter Szilágyi
90655736ed
cmd/geth: fix recover command crash if no param is supplied
2015-11-05 11:53:50 +02:00
Péter Szilágyi
bddb13d436
jsre: fix #1876 , sleep too short on a slow test server
2015-11-05 11:36:10 +02:00
Jeffrey Wilcke
e3f36d9728
Merge pull request #1960 from karalabe/fix-peer-ignore-list
...
eth/downloader: fix dysfunctional ignore list hidden by generic set
2015-11-04 14:43:58 +01:00
Péter Szilágyi
b658a73ed5
eth/downloader: fix dysfunctional ignore list hidden by generic set
2015-11-04 13:11:52 +02:00
Jeffrey Wilcke
e165c2d23c
Merge pull request #1934 from karalabe/polish-protocol-infos
...
eth, p2p, rpc/api: polish protocol info gathering
2015-11-04 11:59:31 +01:00
Jeffrey Wilcke
dda3bf3ce7
Merge pull request #1943 from obscuren/abi-fixes
...
accounts/abi: ABI fixes & added types
2015-11-03 15:22:37 +01:00
Jeffrey Wilcke
6dfbbc3e11
Merge pull request #1948 from bas-vk/rpcfix
...
Infinite loop in filters
2015-11-03 15:22:02 +01:00
Jeffrey Wilcke
5ff0814b1f
VERSION, cmd/geth: bumped version 1.4.0
2015-11-03 11:48:18 +01:00
Felix Lange
001684fb11
Merge pull request #1958 from fjl/secp256k1-pkgsrc
...
crypto/secp256k1: add C compiler flags for pkgsrc
2015-11-03 10:46:04 +01:00
Felix Lange
16b0bc7c3b
crypto/secp256k1: add C compiler flags for pkgsrc
...
pkgsrc is a cross-platform package manager that also
supports OS X.
2015-11-03 10:33:31 +01:00
Jeffrey Wilcke
c841e39476
Merge pull request #1954 from obscuren/regression-miner
...
miner: synchronise start / stop
2015-10-31 20:00:34 +01:00
Jeffrey Wilcke
8c38f8d815
miner: synchronise start / stop
...
This PR fixes an issue where the remote worker was stopped twice and not
properly handled. This adds a synchronised running check to the start
and stop methods preventing closing of a channel more than once.
2015-10-31 02:18:41 +01:00
Jeffrey Wilcke
016ad3e962
Merge pull request #1952 from obscuren/testnet-peers
...
eth: added new testnet peers
2015-10-30 11:00:31 +01:00
Jeffrey Wilcke
98b036ddb6
Merge pull request #1949 from karalabe/update-command-usage
...
cmd/geth, cmd/utils, eth: group CLI flags by purpose
2015-10-30 10:59:36 +01:00
Péter Szilágyi
3c6e285d3b
cmd/geth, cmd/utils, eth: group CLI flags by purpose
2015-10-30 11:33:12 +02:00
Jeffrey Wilcke
1bc789553a
eth: added new testnet peers
2015-10-30 10:01:19 +01:00
Jeffrey Wilcke
1abbe05e93
Merge pull request #1951 from fjl/godeps-upgrade-goupnp
...
Godeps: upgrade github.com/huin/goupnp
2015-10-30 00:14:15 +01:00
Felix Lange
f570b68ed1
p2p/nat: add docs for discover
2015-10-29 22:54:44 +01:00
Felix Lange
bf11a47f22
Godeps: upgrade github.com/huin/goupnp to 90f71cb5
2015-10-29 22:53:59 +01:00
Jeffrey Wilcke
1f72952f04
accounts/abi: ABI fixes & added types
...
Changed field `input` to new `inputs`. Addad Hash and Address as input
types.
Added bytes[N] and N validation
2015-10-29 21:40:18 +01:00
Jeffrey Wilcke
fc46cf337a
Merge pull request #1946 from fjl/xeth-oom
...
Fix for xeth OOM issue
2015-10-29 17:42:55 +01:00
Bas van Kervel
76410df6a2
rpc: return an unsupported error when "pending" was used to create a filter
2015-10-29 17:35:43 +01:00
Felix Lange
fbdb44dcc1
cmd/utils, rpc/comms: stop XEth when IPC connection ends
...
There are a bunch of changes required to make this work:
- in miner: allow unregistering agents, fix RemoteAgent.Stop
- in eth/filters: make FilterSystem.Stop not crash
- in rpc/comms: move listen loop to platform-independent code
Fixes #1930 . I ran the shell loop there for a few minutes and didn't see
any changes in the memory profile.
2015-10-29 17:26:26 +01:00
Jeffrey Wilcke
fd27f074fe
Merge pull request #1945 from bas-vk/rpcparsing
...
Argument parsing can lead to panic in rpc channel
2015-10-29 16:55:51 +01:00
Jeffrey Wilcke
8202bae070
Merge pull request #1939 from karalabe/fix-blocked-sync-goroutines
...
eth: don't block sync goroutines that short circuit
2015-10-29 16:54:43 +01:00
Bas van Kervel
c3c5f8b654
rpc: fixed params parsing problem which could lead to a panic
...
check argument type before parsing params
recover from panic in ipc channel
2015-10-29 09:23:03 +01:00
Felix Lange
56f8699a6c
Merge pull request #1940 from wildfjre/lightkdfflag
...
cmd/utils, crypto: add --lightkdf flag for lighter KDF
2015-10-28 18:54:50 +01:00
Drake Burroughs
05ea8926c3
cmd/utils, crypto: add --lightkdf flag for lighter KDF
2015-10-28 18:46:39 +01:00
Péter Szilágyi
667987e7d0
core: only reset head header/fastblock if stale
2015-10-28 17:40:24 +02:00
Péter Szilágyi
2019ed71b4
eth: don't block sync goroutines that short circuit
2015-10-28 16:41:01 +02:00
Jeffrey Wilcke
6b5a42a15c
Merge pull request #1937 from karalabe/make-ldflags
...
makefile: fix evm ld flags, pass them to xgo too
2015-10-28 11:46:23 +01:00
Péter Szilágyi
e46ab3bdcd
eth, p2p, rpc/api: polish protocol info gathering
2015-10-28 12:44:15 +02:00
Péter Szilágyi
e655626268
makefile: dump mist leftover, add phony targets
2015-10-28 12:34:40 +02:00
Péter Szilágyi
04f8d05bd4
makefile: fix evm ld flags, pass them to xgo too
2015-10-28 12:31:20 +02:00
Jeffrey Wilcke
05f74077fb
Merge pull request #1919 from ethersphere/getnatspec
...
rpc api: eth_getNatSpec
2015-10-28 10:49:53 +01:00
Jeffrey Wilcke
2e4fdce743
Merge pull request #1932 from fjl/gpo-defootgunize
...
eth, xeth: fix GasPriceOracle goroutine leak
2015-10-28 10:32:35 +01:00
Felix Lange
ae1b5b3ff2
eth, xeth: fix GasPriceOracle goroutine leak
...
XEth.gpo was being initialized as needed. WithState copies the XEth
struct including the gpo field. If gpo was nil at the time of the copy
and Call or Transact were invoked on it, an additional GPO listenLoop
would be spawned.
Move the lazy initialization to GasPriceOracle instead so the same GPO
instance is shared among all created XEths.
Fixes #1317
Might help with #1930
2015-10-27 18:43:47 +01:00
caktux
57ab147388
update Dockerfile, remove supervisord and unattended-upgrades
2015-10-26 18:06:19 -04:00
zelig
4d005a2c1d
rpc api: eth_getNatSpec
...
* xeth, rpc: implement eth_getNatSpec for tx confirmations
* rename silly docserver -> httpclient
* eth/backend: httpclient now accessible via eth.Ethereum init-d via config.DocRoot
* cmd: introduce separate CLI flag for DocRoot (defaults to homedir)
* common/path: delete unused assetpath func, separate HomeDir func
2015-10-26 22:24:09 +01:00
caktux
3b4ffacd0c
bump VERSION to 1.3.0
2015-10-25 17:49:01 -04:00
Jeffrey Wilcke
491dd49419
Merge pull request #1928 from Gustav-Simonsson/common_tests
...
tests: update JSON files, add new wrappers
2015-10-25 06:17:19 -07:00
Jeffrey Wilcke
c43db8a2ee
Merge pull request #1924 from fjl/eth-status-timeout
...
eth: time out status message exchange after 5s
2015-10-23 16:43:10 -07:00
Jeffrey Wilcke
0aeab5fd83
Merge pull request #1929 from ethersphere/develop
...
fix console history, lines with leadning whitespace NOT included
2015-10-23 16:18:52 -07:00
zelig
6b5d077c09
fix console history, lines with leadning whitespace NOT included
2015-10-23 20:37:12 +02:00
Gustav Simonsson
145366c07e
tests: update JSON files, add new wrappers
2015-10-23 14:25:18 +02:00
Felix Lange
3cf74336c9
eth: time out status message exchange after 5s
2015-10-22 22:22:04 +02:00
Jeffrey Wilcke
77878f76a9
Merge pull request #1922 from karalabe/fix-receipt-storage-regression
...
core: fix #1921 , decode all receipt field, not just consensus
2015-10-22 10:17:15 -07:00
Jeffrey Wilcke
dce503779b
Merge pull request #1840 from ethersphere/console
...
console, cli, api fixes
2015-10-22 09:27:05 -07:00
Péter Szilágyi
28c7b54d68
core: fix #1921 , decode all receipt field, not just consensus
2015-10-22 13:09:30 +03:00
zelig
8b81ad1fc4
console:
...
* lines with leading space are ommitted from history
* exit processed even with whitespace around
* all whitespace lines (not only empty ones) are ignored
add 7 missing commands to admin api autocomplete
registrar: methods now return proper error if reg addresses are not set. fixes #1457
rpc/console: fix personal.newAccount() regression. Now all comms accept interactive password
registrar: add registrar tests for errors
crypto: catch AES decryption error on presale wallet import + fix error msg format. fixes #1580
CLI: improve error message when starting a second instance of geth. fixes #1564
cli/accounts: unlock multiple accounts. fixes #1785
* make unlocking multiple accounts work with inline <() fd
* passwdfile now correctly read only once
* improve logs
* fix CLI help text for unlocking
fix regression with docRoot / admin API
* docRoot/jspath passed to rpc/api ParseApis, which passes onto adminApi
* docRoot field for JS console in order to pass when RPC is (re)started
* improve flag desc for jspath
common/docserver: catch http errors from response
fix rpc/api tests
common/natspec: fix end to end test (skipped because takes 8s)
registrar: fix major regression:
* deploy registrars on frontier
* register HashsReg and UrlHint in GlobalRegistrar.
* set all 3 contract addresses in code
* zero out addresses first in tests
2015-10-22 00:22:39 +02:00
Jeffrey Wilcke
58d0752fdd
Merge pull request #1883 from obscuren/jit-vm-optimisations
...
core/vm: JIT segmentation
2015-10-21 12:34:32 -07:00
Jeffrey Wilcke
0467a6ceec
Merge pull request #1889 from karalabe/fast-sync-rebase
...
eth/63 fast synchronization algorithm
2015-10-21 11:44:22 -07:00
Péter Szilágyi
5b0ee8ec30
core, eth, trie: fix data races and merge/review issues
2015-10-21 16:49:55 +03:00
Jeffrey Wilcke
dba15d9c36
Merge pull request #1918 from obscuren/get-hash-fix
...
core, tests: get_hash fix
2015-10-21 03:54:59 -07:00
Jeffrey Wilcke
80f26086ee
core, tests: get_hash fix
...
Make sure that we're fetching the hash from the current chain and not
the canonical chain.
2015-10-21 02:31:46 +02:00
Jeffrey Wilcke
796952a49a
Merge pull request #1758 from fjl/coinbase
...
core, core/state: move gas tracking out of core/state
2015-10-20 03:31:36 -07:00
Péter Szilágyi
aa0538db0b
eth: clean out light node notions from eth
2015-10-19 10:03:10 +03:00
Péter Szilágyi
a9d8dfc8e7
core, eth: roll back uncertain headers in failed fast syncs
2015-10-19 10:03:10 +03:00
Péter Szilágyi
b97e34a8e4
eth/downloader: concurrent receipt and state processing
2015-10-19 10:03:10 +03:00
Péter Szilágyi
ab27bee25a
core, eth, trie: direct state trie synchronization
2015-10-19 10:03:09 +03:00
Péter Szilágyi
832b37c822
core, eth: receipt chain reconstruction
2015-10-19 10:03:09 +03:00
Péter Szilágyi
42c8afd440
core: differentiate receipt concensus and storage decoding
2015-10-19 10:03:09 +03:00
Péter Szilágyi
b99fe27f8b
core: fix block canonical mark / content write race
2015-10-19 10:03:09 +03:00
Péter Szilágyi
f186b39018
eth/downloader: add fast and light sync strategies
2015-10-19 10:03:09 +03:00
Péter Szilágyi
c33cc382b3
core: support inserting pure header chains
2015-10-19 10:03:09 +03:00
Péter Szilágyi
92f9a3e5fa
cmd, eth: support switching client modes of operation
2015-10-19 10:03:09 +03:00
Felix Lange
de8d5aaa92
core, core/state: move gas tracking out of core/state
...
The amount of gas available for tx execution was tracked in the
StateObject representing the coinbase account. This commit makes the gas
counter a separate type in package core, which avoids unintended
consequences of intertwining the counter with state logic.
2015-10-17 10:24:34 +02:00
Jeffrey Wilcke
8c85532412
core/vm: added parsing utilities
2015-10-16 22:30:42 +02:00
Jeffrey Wilcke
b196278044
core/vm: added JIT segmenting / optimisations
...
* multi-push segments
* static jumps segments
2015-10-16 22:30:42 +02:00
Jeffrey Wilcke
9d61d78de6
core/vm: abstracted instruction execution away from JIT
...
Moved the execution of instructions to the instruction it self. This
will allow for specialised instructions (e.g. segments) to be execution
in the same manner as regular instructions.
2015-10-16 22:17:35 +02:00
Jeffrey Wilcke
10ed107ba2
Merge pull request #1899 from obscuren/mipmap-bloom
...
core, eth/filters, miner, xeth: Optimised log filtering
2015-10-16 12:35:24 -07:00
Jeffrey Wilcke
6dc14788a2
core, eth/filters, miner, xeth: Optimised log filtering
...
Log filtering is now using a MIPmap like approach where addresses of
logs are added to a mapped bloom bin. The current levels for the MIP are
in ranges of 1.000.000, 500.000, 100.000, 50.000, 1.000. Logs are
therefor filtered in batches of 1.000.
2015-10-16 21:28:59 +02:00
Jeffrey Wilcke
c5ef2afda5
Merge pull request #1907 from Gustav-Simonsson/ethash_godep
...
godeps: update ethash following GPU miner merge
2015-10-16 07:39:42 -07:00
Gustav Simonsson
d5f56ad5c5
godeps: update ethash following GPU miner merge
2015-10-16 16:27:51 +02:00
Jeffrey Wilcke
d5327ddc5f
Merge pull request #1869 from Gustav-Simonsson/gpu_miner
...
all: Add GPU mining, disabled by default
2015-10-16 06:25:33 -07:00
Jeffrey Wilcke
b747754009
Merge pull request #1881 from Gustav-Simonsson/state_new_error
...
core/state, core, miner: handle missing root error from state.New
2015-10-16 06:18:41 -07:00
Gustav Simonsson
1b1f293082
core/state, core, miner: handle missing root error from state.New
2015-10-16 02:22:06 +02:00
Jeffrey Wilcke
f466243417
Merge pull request #1853 from Gustav-Simonsson/libsecp256k1_update
...
Update libsecp256k1, Go wrapper and tests
2015-10-15 10:46:57 -07:00
Jeffrey Wilcke
30f057aaf9
eth/filters: added benchmark
2015-10-15 19:45:44 +02:00
Jeffrey Wilcke
cefe5c80b1
Merge pull request #1898 from karalabe/eventmux-post-race
...
core, eth, event, miner, xeth: fix event post / subscription race
2015-10-15 10:44:30 -07:00
Jeffrey Wilcke
2f1f2e4811
Merge pull request #1887 from Gustav-Simonsson/icap
...
common, crypto: add ICAP functions
2015-10-15 10:32:05 -07:00
Gustav Simonsson
2db9798646
common, crypto: add ICAP functions
2015-10-13 17:44:14 +02:00
Péter Szilágyi
402fd6e8c6
core, eth, event, miner, xeth: fix event post / subscription race
2015-10-12 16:22:03 +03:00
Jeffrey Wilcke
0de9b16b11
Merge pull request #1896 from karalabe/fix-vm-stack-logs
...
core/vm: copy stack element to prevent overwrites
2015-10-12 05:32:45 -07:00
Péter Szilágyi
af9afb686b
core/vm: copy stack element to prevent overwrites
2015-10-12 00:14:35 +03:00
Gustav Simonsson
f32fa075f1
core/secp256k1: update libsecp256k1 Go wrapper and tests
2015-10-09 14:47:55 +02:00
Jeffrey Wilcke
315a422ba7
Merge pull request #1888 from obscuren/testnet
...
cmd, core, eth: added official testnet
2015-10-09 01:31:37 -07:00
Jeffrey Wilcke
1de796f101
cmd, core, eth: added official testnet
2015-10-08 22:01:39 +02:00
Jeffrey Wilcke
9e91579105
Merge pull request #1885 from karalabe/olympic-fix
...
cmd: properly initialize Olympic for all subcommands
2015-10-08 11:33:28 -07:00
Jeffrey Wilcke
bba4dcb72f
Merge pull request #1880 from Gustav-Simonsson/core_transfer
...
core, core/vm, cmd/evm: remove redundant balance check
2015-10-08 11:32:30 -07:00
Jeffrey Wilcke
37abbcb54b
Merge pull request #1833 from Gustav-Simonsson/crypto_tests
...
crypto: correct sig validation, add missing unit tests of exported functions
2015-10-08 11:31:12 -07:00
Péter Szilágyi
2547c9c9b7
cmd: properly initialize Olympic for all subcommands
2015-10-07 18:25:33 +03:00
Gustav Simonsson
ec6a548ee3
all: Add GPU mining, disabled by default
2015-10-07 13:19:30 +02:00
Jeffrey Wilcke
27528ad3d2
Merge pull request #1851 from bas-vk/historyfile
...
console/history respect datadir
2015-10-07 01:51:13 -07:00
Jeffrey Wilcke
f8786defd0
Merge pull request #1850 from karalabe/genesis-block-receipts
...
core: fix #1848 , block receipts db entry for the genesis too
2015-10-07 01:50:37 -07:00
Gustav Simonsson
e1616f77c7
core, core/vm, cmd/evm: remove redundant balance check
2015-10-06 12:42:34 +02:00
Jeffrey Wilcke
44fd395141
Merge pull request #1879 from obscuren/versioning
...
cmd/geth: dev version number
2015-10-05 12:35:42 -07:00
Jeffrey Wilcke
7b44b8aece
cmd/geth: dev version number
2015-10-05 21:11:39 +02:00
Jeffrey Wilcke
13699e2dd9
Merge pull request #1877 from obscuren/head-write
...
core: fixed head write on block insertion
2015-10-05 11:00:57 -07:00
Jeffrey Wilcke
20ab29f885
core: fixed head write on block insertion
...
Due to a rebase this probably got overlooked / ignored. This fixes the
issue of a block insertion never writing the last block.
2015-10-05 17:00:59 +02:00
Jeffrey Wilcke
5b34fa538e
Merge pull request #1756 from obscuren/core-refactor
...
core, core/vm: refactor
2015-10-05 07:14:01 -07:00
Jeffrey Wilcke
7c7692933c
cmd/geth, cmd/utils, core, rpc: renamed to blockchain
...
* Renamed ChainManager to BlockChain
* Checkpointing is no longer required and never really properly worked
when the state was corrupted.
2015-10-04 01:13:56 +02:00
Jeffrey Wilcke
361082ec4b
cmd/evm, core/vm, test: refactored VM and core
...
* Moved `vm.Transfer` to `core` package and changed execution to call
`env.Transfer` instead of `core.Transfer` directly.
* core/vm: byte code VM moved to jump table instead of switch
* Moved `vm.Transfer` to `core` package and changed execution to call
`env.Transfer` instead of `core.Transfer` directly.
* Byte code VM now shares the same code as the JITVM
* Renamed Context to Contract
* Changed initialiser of state transition & unexported methods
* Removed the Execution object and refactor `Call`, `CallCode` &
`Create` in to their own functions instead of being methods.
* Removed the hard dep on the state for the VM. The VM now
depends on a Database interface returned by the environment. In the
process the core now depends less on the statedb by usage of the env
* Moved `Log` from package `core/state` to package `core/vm`.
2015-10-04 01:13:54 +02:00
Jeffrey Wilcke
f7a71996fb
core, event/filter, xeth: refactored filter system
...
Moved the filtering system from `event` to `eth/filters` package and
removed the `core.Filter` object. The `filters.Filter` object now
requires a `common.Database` rather than a `eth.Backend` and invokes the
`core.GetBlockByX` directly rather than thru a "manager".
2015-10-02 22:47:43 +02:00
Jeffrey Wilcke
8b865fa9bf
Merge pull request #1866 from karalabe/honor-eth-capabilities
...
eth/downloader: match capabilities when querying idle peers
2015-10-02 03:49:56 -07:00
Jeffrey Wilcke
0d78f96205
Merge pull request #1865 from obscuren/deadlock-chainmanager-fix
...
core: deadlock in chainmanager after posting RemovedTransactionEvent
2015-10-02 03:39:43 -07:00
Péter Szilágyi
47f62a67aa
eth/downloader: match capabilities when querying idle peers
2015-10-02 13:20:41 +03:00
Jeffrey Wilcke
a6cc02f68f
core: deadlock in chainmanager after posting RemovedTransactionEvent
...
This PR solves an issue with the chain manager posting a
`RemovedTransactionEvent`, the tx pool will try to
acquire the chainmanager lock which has previously been locked prior to
posting `RemovedTransactionEvent`. This results in a deadlock in the
core.
2015-10-02 12:20:18 +02:00
Jeffrey Wilcke
49ae538506
Merge pull request #1405 from fjl/lean-trie
...
core, trie: new trie
2015-10-01 04:34:38 -07:00
Jeffrey Wilcke
581c0901af
Merge pull request #1856 from karalabe/andorid-path-fix
...
common: fix #1818 , secondary datadir paths to fall back to
2015-10-01 04:03:04 -07:00
Péter Szilágyi
74578ab22b
common: fix #1818 , secondary datadir paths to fall back to
2015-10-01 12:26:19 +03:00
Jeffrey Wilcke
e3ac56d502
Merge pull request #1859 from fjl/fix-discover-refresh-race
...
p2p/discover: fix race involving the seed node iterator
2015-09-30 08:21:40 -07:00
Felix Lange
32dda97602
p2p/discover: ignore packet version numbers
...
The strict matching can get in the way of protocol upgrades.
2015-09-30 16:23:03 +02:00
Felix Lange
631bf36102
p2p/discover: remove unused lastLookup field
2015-09-30 16:23:03 +02:00
Felix Lange
b4374436f3
p2p/discover: fix race involving the seed node iterator
...
nodeDB.querySeeds was not safe for concurrent use but could be called
concurrenty on multiple goroutines in the following case:
- the table was empty
- a timed refresh started
- a lookup was started and initiated refresh
These conditions are unlikely to coincide during normal use, but are
much more likely to occur all at once when the user's machine just woke
from sleep. The root cause of the issue is that querySeeds reused the
same leveldb iterator until it was exhausted.
This commit moves the refresh scheduling logic into its own goroutine
(so only one refresh is ever active) and changes querySeeds to not use
a persistent iterator. The seed node selection is now more random and
ignores nodes that have not been contacted in the last 5 days.
2015-09-30 16:23:03 +02:00
Jeffrey Wilcke
46ad5a5f5b
Merge pull request #1852 from obscuren/filter-nil-fix
...
xeth: fixed nil pointer of filter retrieval
2015-09-30 03:06:36 -07:00
Jeffrey Wilcke
9b94076717
Merge pull request #1854 from karalabe/badhasherror-formatting-loop
...
core: fix a formatting loop in BadHashError
2015-09-29 02:26:01 -07:00
Péter Szilágyi
b8b996be74
core: fix a formatting loop in BadHashError
2015-09-29 09:11:38 +03:00
Gustav Simonsson
1d20b0247c
Update libsecp256k1
2015-09-28 17:46:38 +02:00
Jeffrey Wilcke
b9359981f4
xeth: fixed nil pointer of filter retrieval
...
This fix addresses an issue with filters that were (possibly) not yet
added to the filter queues but were expected. I've added additional nil
checks making sure it doesn't crash and swapped the installation of the
filter around so it's installed before use.
Closes #1665
2015-09-25 13:56:53 +02:00
Jeffrey Wilcke
7977e87ce1
Merge pull request #1843 from karalabe/cleanup-downloader-channel
...
eth/downloader: always send termination wakes, clean leftover
2015-09-25 04:34:59 -07:00
Bas van Kervel
8636f0e1c3
console/history respect datadir
2015-09-25 13:08:48 +02:00
Péter Szilágyi
830ddcee60
core: fix #1848 , block receipts db entry for the genesis too
2015-09-24 19:38:59 +03:00
Jeffrey Wilcke
69d86442a5
Merge pull request #1803 from Gustav-Simonsson/badhashes
...
core: Add BadHashErr and test for BadHashes handling
2015-09-23 11:10:25 -07:00
Jeffrey Wilcke
36f46a61a7
Merge pull request #1844 from obscuren/version-file
...
VERSION: added version
2015-09-23 05:48:00 -07:00
Jeffrey Wilcke
6e1dc321f4
VERSION: added version
2015-09-23 14:47:20 +02:00
Felix Lange
7a2a918067
Merge pull request #1842 from fjl/rpc-fix-unknown-block
...
rpc/api: don't crash for unknown blocks
2015-09-23 12:57:33 +02:00
Péter Szilágyi
f459a3f0ae
eth/downloader: always send termination wakes, clean leftover
2015-09-23 12:39:17 +03:00
Jeffrey Wilcke
e456f27795
Merge pull request #1827 from Gustav-Simonsson/common_tests
...
tests: add test for StateTests/stCallCodes.json
2015-09-23 02:12:59 -07:00
Felix Lange
90cd8ae9f2
rpc/api: don't crash for unknown blocks
...
Most eth RPC calls that work with blocks crashed when the block was not
found because they called Hash on a nil block. This is a regression
introduced in cdc2662c40 (#1779 ).
While here, remove the insane conversions in get*CountBy*. There is no
need to construct a complete BlockRes and converting
int->int64->*big.Int->[]byte->hexnum->string to format the length of a
slice as hex.
2015-09-22 23:59:26 +02:00
Felix Lange
70b6174748
cmd/geth, core: make "geth blocktest" work again
...
The test genesis block was not written properly, block insertion failed
immediately.
While here, fix the panic when shutting down "geth blocktest" with
Ctrl+C. The signal handler is now installed automatically, causing
ethereum.Stop to crash because everything is already stopped.
2015-09-22 23:55:31 +02:00
Felix Lange
c1a352c108
trie: add merkle proof functions
2015-09-22 22:57:37 +02:00
Felix Lange
a2d5a60418
core, core/state: batch-based state sync
2015-09-22 22:57:37 +02:00
Felix Lange
565d9f2306
core, trie: new trie
2015-09-22 22:53:49 +02:00
Felix Lange
6b91a4abe5
trie: improve benchmarks
2015-09-22 22:49:27 +02:00
Gustav Simonsson
bfde1a4305
core: Add BadHashErr and test for BadHashes handling
2015-09-22 18:02:26 +02:00
Gustav Simonsson
3340b56593
crypto: correct sig validation, add more unit tests
2015-09-22 17:33:39 +02:00
Jeffrey Wilcke
e56cbc225e
Merge pull request #1835 from karalabe/make-cross
...
makefile: built in cross compilation targets
2015-09-21 11:47:10 -07:00
Jeffrey Wilcke
7bf8e949e7
Merge pull request #1669 from obscuren/tx-pool-auto-resend
...
core, xeth: chain reorg move missing transactions to transaction pool
2015-09-21 11:45:59 -07:00
Péter Szilágyi
6a05c569f2
makefile: built in cross compilation targets
2015-09-21 21:36:01 +03:00
Jeffrey Wilcke
eaa4473dbd
core, core/types: readd transactions after chain re-org
...
Added a `Difference` method to `types.Transactions` which sets the
receiver to the difference of a to b (NOTE: not a **and** b).
Transaction pool subscribes to RemovedTransactionEvent adding back to
those potential missing from the chain.
When a chain re-org occurs remove any transactions that were removed
from the canonical chain during the re-org as well as the receipts that
were generated in the process.
Closes #1746
2015-09-21 20:33:28 +02:00
Jeffrey Wilcke
be76a68aea
cmd/geth: changed version number to 1.2.0
...
Changed the version number of geth to 1.2.0 so that dev builds are now properly build (instead of master). Note to self; increase version number to 1.2.1 for our next actual release.
2015-09-21 16:13:07 +02:00
Jeffrey Wilcke
12c0afe4fe
Merge pull request #1822 from karalabe/contain-pow
...
core: separate and contain POW verifier, extensive tests
2015-09-21 06:52:11 -07:00
Gustav Simonsson
5621308949
tests: add test for StateTests/stCallCodes.json
2015-09-21 11:34:02 +02:00
Péter Szilágyi
399c920380
core: separate and contain POW verifier, extensive tests
2015-09-21 10:24:49 +03:00
Jeffrey Wilcke
e40b447fea
Merge pull request #1814 from Gustav-Simonsson/common_tests
...
tests: update common test wrappers and test files
2015-09-18 16:34:54 -07:00
Jeffrey Wilcke
b94b9b0158
Merge pull request #1817 from obscuren/nonce-fix
...
core: transaction nonce recovery
2015-09-18 15:56:10 -07:00
Gustav Simonsson
47ca6904b3
tests: use lastblockhash field to validate reorgs and block headers
2015-09-18 17:48:31 +02:00
Gustav Simonsson
075815e5ff
tests: update common test wrappers and test files
2015-09-18 13:08:36 +02:00
Jeffrey Wilcke
b60a27627b
core: transaction nonce recovery fix
...
When the transaction state recovery kicked in it assigned the last
(incorrect) nonce to the pending state which caused transactions with
the same nonce to occur.
Added test for nonce recovery
2015-09-18 11:59:21 +02:00
Felix Lange
216c486a3a
Merge pull request #1815 from karalabe/chain-maker-timer
...
core: allow modifying test-chain block times
2015-09-18 11:23:31 +02:00
Felix Lange
ac6248ed7a
Merge pull request #1793 from jeffallen/typo
...
common: Update README.md for the current package name
2015-09-17 19:26:49 +02:00
Felix Lange
bdf4fd6091
Merge pull request #1813 from kobigurk/develop
...
cmd/geth: extradata is correcly initialized with console
2015-09-17 19:25:32 +02:00
Felix Lange
69f48e4689
Merge pull request #1811 from bas-vk/timer-clearinterval
...
timer bugfix when clearInterval was called from within the callback
2015-09-17 19:21:49 +02:00
Péter Szilágyi
6f3cb12924
core: allow modifying test-chain block times
2015-09-17 13:43:52 +03:00
Jeffrey Wilcke
58fbcaa750
Merge pull request #1810 from karalabe/pure-header-verifications-2
...
core, eth, miner: use pure header validation
2015-09-16 14:21:12 -07:00
Kobi Gurkan
1a1a1ee4ff
cmd/geth: extradata is correcly initialized with console
2015-09-16 21:01:21 +03:00
Jeffrey Wilcke
985b5f29ed
Merge pull request #1801 from fjl/ethdb
...
all: move common.Database to ethdb and add NewBatch
2015-09-16 07:50:14 -07:00
Bas van Kervel
2f65ddc501
jsre: timer bugfix when clearInterval was called from within the callback
2015-09-16 11:57:33 +02:00
Jeffrey Wilcke
1cc2f08041
Merge pull request #1784 from karalabe/standard-sync-stats
...
eth, rpc: standardize the chain sync progress counters
2015-09-16 02:31:58 -07:00
Péter Szilágyi
821619e1c3
core, eth, miner: use pure header validation
2015-09-16 10:46:28 +03:00
Jeffrey Wilcke
e9a80518c7
Merge pull request #1744 from kobigurk/develop
...
adds extradata flag
2015-09-15 13:56:10 -07:00
Kobi Gurkan
321733ab23
cmd/geth: adds extradata flag
2015-09-15 23:35:36 +03:00
Péter Szilágyi
d4d3fc6a70
jsre, rpc/api: pull in new web3 and use hex numbers
2015-09-15 17:05:12 +03:00
Péter Szilágyi
99b62f36b6
eth/downloader: header-chain order and ancestry check
2015-09-15 14:45:53 +03:00
Péter Szilágyi
0a7d059b6a
eth, rpc: standardize the chain sync progress counters
2015-09-15 14:45:53 +03:00
Jeffrey Wilcke
55bdcfaeac
Merge pull request #1806 from ethersphere/solc2
...
new solc api - late fixes
2015-09-15 01:08:30 -07:00
zelig
3a5e7ed9a6
new solc api:
...
* use legacy version matcher
* optimise just a boolean flag
* skipf for messages in tests
2015-09-15 00:35:22 +02:00
Felix Lange
b252589960
ethdb: remove Flush
2015-09-14 23:36:30 +02:00
Felix Lange
d581dfee5f
ethdb: copy stored memdb values
...
Storing a value in LevelDB copies the bytes, modifying the value
afterwards does not affect the content of the database. This commit
ensures that MemDatabase satisfies the same property.
2015-09-14 23:36:30 +02:00
Felix Lange
8b32f10f16
ethdb: add NewBatch
2015-09-14 23:36:30 +02:00
Felix Lange
8c4dab77ba
all: move common.Database to package ethdb
2015-09-14 23:36:30 +02:00
Felix Lange
071e2cd08e
Merge pull request #1786 from ethersphere/solc
...
common/compiler: new solc API
2015-09-14 23:32:40 +02:00
Felix Lange
47b9c640f5
Merge pull request #1797 from karalabe/ensure-ipcpath-exists
...
rpc/comms: fix #1795 , ensure IPC path exists before binding
2015-09-14 14:45:11 +02:00
Felix Lange
a9c809b441
Merge pull request #1792 from jeffallen/uuid
...
Change go-uuid to use the current supported repository.
2015-09-14 12:06:59 +02:00
Jeff R. Allen
0d40727775
Change go-uuid to use the current supported repository.
2015-09-12 16:49:24 +06:00
zelig
17b729759b
Solidity Compiler - solc new API
...
* adapt to new compiler versioning
* use compiler version as language version
* implement new solc API for versions >= 0.1.[2-9][0-9]* fixes #1770
* add optimize=1 to options
* backward compatibility (for now) for <= 0.1.1, and old versions (0.[2-9][0-9]*.[0-9]+)
* introduce compilerOptions to ContractInfo
* clean up flair, include full version string to version line and ContractInfo
2015-09-12 10:52:52 +02:00
Jeffrey Wilcke
55ed8d108d
Merge pull request #1789 from Gustav-Simonsson/core_remove_unused_functions
...
core, core/vm, core/state: remove unused functions
2015-09-11 15:29:27 -07:00
Jeffrey Wilcke
f1a4b330dd
Merge pull request #1796 from karalabe/ethash-android-support
...
godeps: pull in ethash android fix
2015-09-11 15:26:01 -07:00
Jeffrey Wilcke
0eac601b5b
Merge pull request #1779 from karalabe/split-block-storage-3000
...
core: split the db blocks into components, move TD out top level
2015-09-11 08:10:37 -07:00
Péter Szilágyi
cdc2662c40
core: split out TD from database and all internals
2015-09-11 17:42:25 +03:00
Péter Szilágyi
2b339cbbd8
core, eth: split the db blocks into headers and bodies
2015-09-11 17:42:25 +03:00
Péter Szilágyi
3e6964b841
rpc/comms: fix #1795 , ensure IPC path exists before binding
2015-09-11 17:03:31 +03:00
Péter Szilágyi
c6013725a8
godeps: pull in ethash android fix
2015-09-11 15:53:23 +03:00
Felix Lange
4e075e4013
Merge pull request #1773 from obscuren/dev-mode
...
cmd/geth, cmd/utils, eth: added dev mode flag
2015-09-10 21:15:33 +02:00
Gustav Simonsson
b81a6e6ab8
core, core/vm, core/state: remove unused functions
2015-09-10 21:10:58 +02:00
Jeffrey Wilcke
62bbf8a09e
Merge pull request #1778 from fjl/rlp-trie-changes
...
rlp: precursor changes for trie, p2p
2015-09-10 12:02:16 -07:00
Jeff R. Allen
4ce3dfe9c8
common: Update README.md for the current package name
2015-09-10 23:59:38 +06:00
Felix Lange
fc8b246109
rlp: move ListSize to raw.go
2015-09-10 19:41:51 +02:00
Felix Lange
24bb68e7cf
rlp: add RawValue
2015-09-10 19:41:51 +02:00
Felix Lange
bc17dba8fb
rlp: add Split functions
...
These functions allow destructuring of raw rlp-encoded bytes
without the overhead of reflection or copying.
2015-09-10 19:41:51 +02:00
Felix Lange
ac32f52ca6
rlp: fix encReader returning nil buffers to the pool
...
The bug can cause crashes if Read is called after EOF has been returned.
No code performs such calls right now, but hitting the bug gets more
likely as rlp.EncodeToReader gets used in more places.
2015-09-10 19:12:32 +02:00
Felix Lange
90f1fe0ed2
Merge pull request #1781 from Gustav-Simonsson/state_object_copy
...
core/state: deleted field in StateObject Copy() and unit test
2015-09-09 18:42:36 +02:00
Jeffrey Wilcke
28b13a4d1e
Merge pull request #1780 from bas-vk/miner-crash
...
agent/miner Prevent the CpuAgent to be started multiple times
2015-09-09 04:49:28 -07:00
Jeffrey Wilcke
f04b3a6f29
cmd/geth, cmd/utils, eth: added dev mode flag
...
Dev mode enabled some debugging flags such as:
* VM debugging mode
* Simpler proof of work
* Whisper enabled by default
* Datadir to a tmp datadir
* Maxpeers set to 0
* Gas price of 0
* Random listen port
2015-09-09 08:53:05 +02:00
Gustav Simonsson
bf879ef230
core/state: test formatting adhering to Go convention
2015-09-09 00:26:18 +02:00
Gustav Simonsson
004ed786b4
core/state: deleted field in StateObject Copy() and unit test
2015-09-08 15:56:11 +02:00
Bas van Kervel
652eea71fe
put unlock after lock
2015-09-08 12:42:29 +02:00
Bas van Kervel
618065895b
agent/miner Prevent the CpuAgent to be started multiple times
2015-09-08 11:27:55 +02:00
Péter Szilágyi
edaea69817
Merge pull request #1777 from hectorchu/develop
...
rpc/comms: fix bug attaching the console over http
2015-09-08 11:02:09 +03:00
Péter Szilágyi
6fe46cc743
Merge pull request #1774 from bas-vk/console-crash
...
cmd/geth Autocompletion bugfix which let the console crash
2015-09-08 10:33:09 +03:00
Hector Chu
4ea81f170a
rpc/comms: fix bug attaching the console over http
2015-09-07 15:09:59 +01:00
Bas van Kervel
f69121357d
cmd/geth Autocompletion bugfix which let the console crash
2015-09-06 16:25:55 +02:00
Felix Lange
e2d7c1a523
Merge pull request #1752 from karalabe/fix-eth61-test
...
eth/downloader: fix race causing occasional test failure
2015-09-03 15:52:18 +02:00
Péter Szilágyi
ebbe25ee71
Merge pull request #1764 from kobigurk/honor_ipc_datadir
...
honors datadir when attaching
2015-09-03 10:48:23 +03:00
Kobi Gurkan
1a86adc5a2
cmd/geth: honor datadir when attaching
2015-09-03 10:28:30 +03:00
Jeffrey Wilcke
e98854588b
Merge pull request #1761 from CJentzsch/patch-3
...
fix block time issue
2015-09-02 15:13:14 -07:00
Christoph Jentzsch
0fda4c4e15
fix block time issue
...
currently, under normal circumstances, you always set the timestamp to previous.Time() + 1.
credits to https://www.reddit.com/r/ethereum/comments/3jcs5r/code_avg_block_time_vs_difficulty_adjustment/cuoi4op
style
2015-09-03 00:05:05 +02:00
Felix Lange
b2c17a5a63
Merge pull request #1726 from Gustav-Simonsson/update_tests
...
Add TestBcForkUncle tests & update JSON files
2015-09-02 22:02:44 +02:00
Gustav Simonsson
e9b031b88b
Merge pull request #1755 from fjl/coinbase
...
core: improve block gas tracking
2015-09-01 23:36:05 +02:00
Felix Lange
00b45acb9e
core: improve block gas tracking
2015-09-01 23:11:03 +02:00
Felix Lange
1ffc5b0cfd
Merge pull request #1751 from maran/fix_filters
...
core: Filter on addresses should work as an OR not an AND.
2015-09-01 20:10:27 +02:00
Felix Lange
5e4cd599eb
Merge pull request #1745 from mrdomino/obsd-build-master
...
Pull in ethash and go-isatty updates
2015-09-01 20:06:13 +02:00
Péter Szilágyi
1f1d73ab74
eth/downloader: fix race causing occasional test failure
2015-09-01 16:11:14 +03:00
Maran
67225de255
Filter on addresses should work as an OR not an AND.
2015-09-01 09:19:45 +02:00
Steven Dee
540eb3d02d
Pull in ethash and go-isatty updates
...
Fixes build on OpenBSD.
2015-08-31 12:14:32 -04:00
Gustav Simonsson
fe8093b71f
Add TestBcForkUncleTests and update JSON files
2015-08-31 16:45:00 +02:00
Felix Lange
9dc23ce284
Merge pull request #1742 from fjl/rpc-receipt-root
...
rpc: add receiptRoot to getBlock* responses
2015-08-31 14:50:21 +02:00
Felix Lange
1801748ccd
Merge pull request #1734 from fjl/ldflags-warning-go1.5
...
build: avoid -X separator warning with Go >= 1.5
2015-08-31 14:49:50 +02:00
Felix Lange
8b12bcc0ac
rpc: add receiptRoot to getBlock* responses
...
Fixes #1679
2015-08-29 11:12:01 +02:00
Felix Lange
e1037bd0cf
Merge pull request #1724 from Gustav-Simonsson/get_work
...
rpc: return error code for eth_getWork when no work ready
2015-08-29 10:54:10 +02:00
Felix Lange
2d1ced8759
Merge pull request #1739 from bas-vk/empty-password
...
rpc/api allow empty password
2015-08-28 13:14:51 +02:00
Bas van Kervel
39e9560600
rpc/api allow empty password
2015-08-28 12:49:41 +02:00
Gustav Simonsson
d9addf79fa
Improve error string and remove unneeded else clause
2015-08-28 03:42:01 +02:00
Felix Lange
cfd84a6ad9
build: avoid -X separator warning with Go >= 1.5
2015-08-27 13:26:13 +02:00
Felix Lange
6ec13e7e2b
Merge pull request #1701 from karalabe/eth62-sync-rebase
...
eth: implement eth/62 synchronization logic
2015-08-27 00:03:59 +02:00
Felix Lange
79b644c7a3
Merge pull request #1717 from karalabe/forward-solidity-errors
...
common/compiler: fix #1598 , expose solidity errors
2015-08-26 19:00:11 +02:00
Felix Lange
14370a2260
Merge pull request #1718 from caktux/develop
...
add missing shh_getMessages to RPC mappings
2015-08-26 18:55:51 +02:00
Felix Lange
3df6f3fc14
Merge pull request #1721 from bas-vk/console-error-parsing
...
Improved console error handling
2015-08-26 18:55:31 +02:00
Felix Lange
847794a321
Merge pull request #1722 from bas-vk/remote-deleteaccount
...
Remove personal.deleteAccount from RPC interface
2015-08-26 18:02:51 +02:00
Gustav Simonsson
829201382b
rpc: return error code for eth_getWork when no work ready
2015-08-26 12:46:50 +02:00
Bas van Kervel
5dd2462816
rpc/api - remove personal.deleteAccount from RPC interface
2015-08-26 11:39:43 +02:00
Bas van Kervel
f448310eef
bugfix console error handling
2015-08-26 11:33:02 +02:00
Péter Szilágyi
101418b275
common/compiler: fix #1598 , expose solidity errors
2015-08-26 10:04:23 +03:00
caktux
a1d8015817
add missing shh_getMessages to RPC mappings
2015-08-25 14:42:57 -04:00
Péter Szilágyi
17f65cd1e5
eth: update metrics collection to handle eth/62 algos
2015-08-25 17:48:47 +03:00
Péter Szilágyi
47a7fe5d22
eth: port the synchronisation algo to eth/62
2015-08-25 17:48:47 +03:00
Felix Lange
abce09954b
Merge pull request #1711 from Gustav-Simonsson/timestamp_big_int
...
Add tests for uncle timestamps and refactor timestamp type
2015-08-25 15:49:36 +02:00
Felix Lange
a219159e7e
Merge pull request #1710 from bas-vk/useragent
...
user agent messages were dumped in some cases
2015-08-25 12:23:25 +02:00
Gustav Simonsson
7324176f70
Add tests for uncle timestamps and refactor timestamp type
2015-08-25 04:46:11 +02:00
Péter Szilágyi
ca88e18f59
eth: kill off protocol eth/60 in preparation for eth/62
2015-08-24 17:57:28 +03:00
Péter Szilágyi
42f44dda54
eth, eth/downloader: handle header requests, table driven proto tests
2015-08-24 17:57:28 +03:00
Bas van Kervel
d910148a96
Set ipc channel as user agent client
2015-08-24 12:41:34 +02:00
Péter Szilágyi
c51e153b5c
eth, metrics, p2p: prepare metrics and net packets to eth/62
2015-08-21 10:30:57 +03:00
Jeffrey Wilcke
d51d0022ce
cmd/geth: bumped version 1.1.0
2015-08-20 21:43:36 +02:00
Jeffrey Wilcke
3793991c0e
remove 0x
2015-08-20 18:50:47 +02:00
Jeffrey Wilcke
b884d6ebaa
canary update
2015-08-20 18:38:21 +02:00
Jeffrey Wilcke
36f7fe61c3
core, tests: Double SUICIDE fix
2015-08-20 18:22:50 +02:00
Jeffrey Wilcke
54088b0b8b
cmd/geth: bumped version 1.0.3
2015-08-20 13:08:08 +02:00
Jeffrey Wilcke
9fb7bc7443
geth: bumped version 1.0.2
2015-08-19 23:05:39 +02:00
Jeffrey Wilcke
e2d44814a5
Merge pull request #1694 from obscuren/hide-fdtrack
...
fdtrack: hide message
2015-08-19 13:50:54 -07:00
Jeffrey Wilcke
bd3a44cac9
Merge pull request #1652 from bas-vk/autoreconnect
...
rpc/comms: reconnect ipc client after write error
2015-08-19 13:29:51 -07:00
Jeffrey Wilcke
61a6911eeb
Merge pull request #1689 from fjl/discover-ignore-temp-errors
...
p2p, p2p/discover: small fixes
2015-08-19 12:55:40 -07:00
Bas van Kervel
9bf17eb05a
rpc/comms reconnect ipc client after write error
2015-08-19 21:48:56 +02:00
Jeffrey Wilcke
269c5c7107
Revert "fdtrack: temporary hack for tracking file descriptor usage"
...
This reverts commit 5c949d3b3b .
2015-08-19 21:46:01 +02:00
Jeffrey Wilcke
382d35bf40
Merge pull request #1688 from karalabe/fix-double-imports
...
eth: fix an issue with pulling and inserting blocks twice
2015-08-19 08:19:37 -07:00
Felix Lange
dd54fef898
p2p/discover: don't attempt to replace nodes that are being replaced
...
PR #1621 changed Table locking so the mutex is not held while a
contested node is being pinged. If multiple nodes ping the local node
during this time window, multiple ping packets will be sent to the
contested node. The changes in this commit prevent multiple packets by
tracking whether the node is being replaced.
2015-08-19 14:57:16 +02:00
Felix Lange
edccc7ae34
p2p: continue listening after temporary errors
2015-08-19 14:39:04 +02:00
Felix Lange
7d5ff770e2
p2p/discover: continue reading after temporary errors
...
Might solve #1579
2015-08-19 14:38:55 +02:00
Jeffrey Wilcke
c6a11fe372
Merge pull request #1680 from maran/fix_removedb
...
cmd/geth: Fix chain purging from cmd line
2015-08-19 05:17:22 -07:00
Péter Szilágyi
941920f2aa
eth: fix an issue with pulling and inserting blocks twice
2015-08-19 15:14:26 +03:00
Jeffrey Wilcke
3b997c3e16
Merge pull request #1454 from ethersphere/frozen-cryptoclean
...
crypto: remove obsolete code
2015-08-19 02:39:02 -07:00
Jeffrey Wilcke
0737cbc5c1
Merge pull request #1683 from ethereum/travis
...
Switch from Coveralls to Codecov code coverage service
2015-08-18 14:26:14 -07:00
Jeffrey Wilcke
227ff4d2d6
Merge pull request #1682 from obscuren/readme-improvements
...
Updated README, Added CONTRIBUTING
2015-08-18 14:16:42 -07:00
Jeffrey Wilcke
18d450b2d0
Updated README, Added CONTRIBUTING
2015-08-18 23:00:15 +02:00
Taylor Gerring
cc87551edc
Codecov integration
2015-08-18 22:46:48 +02:00
Jeffrey Wilcke
d0dc1b4a60
Merge pull request #1681 from obscuren/miner-receipt-fix
...
core, miner: write miner receipts
2015-08-18 12:53:26 -07:00
Jeffrey Wilcke
b4369e1015
core, miner: write miner receipts
2015-08-18 21:46:26 +02:00
Maran
4d5501c46a
cmd/geth: Fix chain purging from cmd line
2015-08-18 15:56:37 +02:00
zelig
d4da2f630e
crypto: remove obsolete key files
2015-08-18 01:25:04 +02:00
Jeffrey Wilcke
e1da124415
Merge pull request #1675 from obscuren/submithashrate-change
...
rpc/api: return boolean value for eth_submitHashrate
2015-08-17 11:49:15 -07:00
Jeffrey Wilcke
36081505c4
Merge pull request #1673 from karalabe/fix-api-xeth-responses
...
rpc: update the xeth over RPC API to use the success/failure messages
2015-08-17 11:47:55 -07:00
Jeffrey Wilcke
2497f28aa9
Merge pull request #1627 from zsfelfoldi/gpo
...
GPO update
2015-08-17 06:37:58 -07:00
zsfelfoldi
49ece3155c
GPO update
2015-08-17 15:20:33 +02:00
Jeffrey Wilcke
8839fee415
rpc/api: return boolean value for eth_submitHashrate
2015-08-17 15:09:30 +02:00
Jeffrey Wilcke
ff1f6fa09d
Merge pull request #1649 from maran/pending_tx_response
...
rpc/api: format pendingTx response. Fixes #1648
2015-08-17 06:02:08 -07:00
Jeffrey Wilcke
7ea30f18f9
Merge pull request #1674 from tgerring/bootnodes
...
Added SG bootnode
2015-08-17 05:56:38 -07:00
Jeffrey Wilcke
12805c738c
Merge pull request #1667 from fjl/pretty-printer-improvements
...
jsre: pretty printer improvements
2015-08-17 05:55:09 -07:00
Taylor Gerring
80b294c3c7
Update CPP pubkey
2015-08-17 14:51:27 +02:00
Taylor Gerring
8884f856ef
Added SG bootnode
2015-08-17 14:36:57 +02:00
Péter Szilágyi
309788de37
rpc: update the xeth over RPC API to use the success/failure messages
2015-08-17 14:04:20 +03:00
Jeffrey Wilcke
f6367548e4
Merge pull request #1654 from obscuren/call-gas
...
xeth: call fix when doing 'create'-like calls
2015-08-16 16:33:29 -07:00
Jeffrey Wilcke
1c3ca3ce6a
xeth: max gas limit
2015-08-16 15:27:30 +02:00
Maran
8603ec7055
rpc/api: format pendingTx response. Fixes #1648
2015-08-16 11:12:22 +02:00
Felix Lange
1086e2f298
jsre: fix annoying indentation when printing arrays of objects
...
The pretty printer, dumb as it is, printed arrays of objects as
[{
...
}]
With this change, they now print as:
[{
...
}]
2015-08-16 00:35:00 +01:00
Felix Lange
49703bea0a
jsre: bind the pretty printer to "inspect" in JS
2015-08-15 23:55:42 +01:00
Jeffrey Wilcke
59b28cfa31
Merge pull request #1663 from obscuren/issue-1662
...
xeth: added a transact mu
2015-08-15 14:55:04 -07:00
Jeffrey Wilcke
5c5c3930b7
Merge pull request #1659 from bas-vk/exec-output
...
Javascript --exec output
2015-08-15 06:23:29 -07:00
Jeffrey Wilcke
7bb5ac045e
xeth: added a transact mu
...
Added a transact mutex. The transact mutex will fix an issue where
transactions were created with the same nonce resulting in some
transactions being dropped. This happened when two concurrent calls
would call the `Transact` method (which is OK) which would both call
`GetNonce`. While the managed is thread safe it does not help us in this
case.
2015-08-15 00:33:52 +02:00
Jeffrey Wilcke
cd81356ace
Merge pull request #1658 from bas-vk/liner-ctrl-c
...
Clear current line on ctrl-C
2015-08-14 04:36:15 -07:00
Bas van Kervel
c472b8f725
main clear current line on ctrl-C
2015-08-14 13:23:41 +02:00
Jeffrey Wilcke
3a66c4ed47
Merge pull request #1642 from ethereum/fix-js-console-windows
...
cmd/geth, jsre: restore command line editing on windows
2015-08-14 04:14:11 -07:00
Jeffrey Wilcke
29181003d4
Merge pull request #1655 from obscuren/db-merge-fix
...
eth, trie: removed key prefixing from state entries & merge db fix
2015-08-14 04:12:33 -07:00
Bas van Kervel
87d1cde7e4
main print console output for js statement given by the exec argument
2015-08-14 13:06:34 +02:00
Jeffrey Wilcke
28b14d3e6d
Merge pull request #1635 from bas-vk/useragent
...
support for user agents
2015-08-13 16:25:33 -07:00
Jeffrey Wilcke
73c4e6005c
Merge pull request #1638 from obscuren/jit-fixes
...
core/vm: fixed jit error & added inline docs
2015-08-13 11:49:01 -07:00
Jeffrey Wilcke
b8ca0a830e
eth, trie: removed key prefixing from state entries & merge db fix
...
Fixed database merge strategy to use the correct database. Due to a copy
paste fail when doing type evaluation the same database was being
iterated (chain), all others were ignored.
Removed state prefixing because {H(code): code} is stored in the same
database as the rest of the state.
2015-08-13 20:44:03 +02:00
Felix Lange
a89cfe92cc
Merge pull request #1470 from ebuchman/encHandshake
...
p2p: validate recovered ephemeral pubkey
2015-08-13 11:59:27 +02:00
Felix Lange
0b0b31c7d2
Merge pull request #1651 from karalabe/rlp-boolean-support
...
rlp: boolean support
2015-08-13 11:10:26 +02:00
Péter Szilágyi
1d2420323c
rlp: add support for boolean encoding/decoding
2015-08-13 12:05:39 +03:00
Felix Lange
0dd6911c62
Merge pull request #1647 from fjl/fix-disc-reason
...
p2p: fix value of DiscSubprotocolError
2015-08-12 21:20:21 +02:00
Felix Lange
28feafe7af
Merge pull request #1646 from fjl/fix-client-identifier
...
cmd/geth: remove spaces in client identifier
2015-08-12 14:38:48 +02:00
Felix Lange
0d10d5a0a5
p2p: fix value of DiscSubprotocolError
...
We had the wrong value (12) since forever.
2015-08-12 14:15:54 +02:00
Felix Lange
31a2793662
cmd/geth: remove spaces in client identifier
2015-08-12 13:32:52 +02:00
Bas van Kervel
f9cbd16f27
support for user agents
2015-08-12 12:22:16 +02:00
Felix Lange
0ef80bb3d0
cmd/geth, jsre: restore command line editing on windows
...
PR #856 broke command line editing by wrapping stdout with a filter that
interprets ANSI escape sequences to fix colored printing on windows.
Implement the printer in Go instead so it can do its own
platform-dependent coloring.
As a nice side effect, the JS console is now noticeably more responsive
when printing results.
Fixes #1608
Fixes #1612
2015-08-12 12:04:00 +02:00
Jeffrey Wilcke
05c66529b2
Merge pull request #1621 from ethereum/fix-discover-hangs
...
p2p/discover: fix two major bugs in reply packet handling
2015-08-11 12:17:13 -07:00
Jeffrey Wilcke
9cacec70f9
cmd/evm, core/vm, tests: changed DisableVm to EnableVm
2015-08-11 18:43:22 +02:00
Jeffrey Wilcke
94b6f38869
Merge pull request #1641 from obscuren/web3-update
...
web3: updated
2015-08-11 08:55:55 -07:00
Jeffrey Wilcke
bf6ea2919d
web3: updated
2015-08-11 17:17:20 +02:00
Jeffrey Wilcke
c32d6fdf74
Merge pull request #1640 from obscuren/trace-flag-ethtest
...
cmd/ethtest: added trace flag for debugging
2015-08-11 02:53:02 -07:00
Jeffrey Wilcke
67c8ccc309
cmd/ethtest: added trace flag for debugging
2015-08-11 11:46:52 +02:00
Felix Lange
590c99a98f
p2p/discover: fix UDP reply packet timeout handling
...
If the timeout fired (even just nanoseconds) before the deadline of the
next pending reply, the timer was not rescheduled. The timer would've
been rescheduled anyway once the next packet was sent, but there were
cases where no next packet could ever be sent due to the locking issue
fixed in the previous commit.
As timing-related bugs go, this issue had been present for a long time
and I could never reproduce it. The test added in this commit did
reproduce the issue on about one out of 15 runs.
2015-08-11 11:42:17 +02:00
Felix Lange
01ed3fa1a9
p2p/discover: unlock the table during ping replacement
...
Table.mutex was being held while waiting for a reply packet, which
effectively made many parts of the whole stack block on that packet,
including the net_peerCount RPC call.
2015-08-11 11:42:17 +02:00
Jeffrey Wilcke
32395ddb89
core/vm: fixed jit error & added inline docs
...
opNumber did not create a new big int which could lead to the block's
number being modified.
2015-08-11 00:16:38 +02:00
Jeffrey Wilcke
2fcf7f1241
Merge pull request #1604 from obscuren/db-merge
...
core, eth, trie, xeth: merged state, chain, extra databases in one
2015-08-09 05:16:37 -07:00
Jeffrey Wilcke
07cb8092e7
Merge pull request #1611 from obscuren/expdiff-olympic-fix
...
cmd/utils, core: disable exp diff for olympic net
2015-08-09 05:15:13 -07:00
Jeffrey Wilcke
1cbd53add8
Merge pull request #1626 from obscuren/defaults-fix
...
cmd/geth, core/vm: setup vm settings and defaulted JIT disabled
2015-08-08 17:11:28 -07:00
Jeffrey Wilcke
eec38c5853
cmd/geth, core/vm: setup vm settings and defaulted JIT disabled
2015-08-09 02:06:16 +02:00
Jeffrey Wilcke
c93f0b9f4b
Merge pull request #1490 from obscuren/jit-vm
...
core/vm: jit vm
2015-08-08 06:36:26 -07:00
Jeffrey Wilcke
a23478c0be
core, eth, trie, xeth: merged state, chain, extra databases in one
2015-08-07 22:29:02 +02:00
Jeffrey Wilcke
312128384b
Merge pull request #1620 from caktux/develop
...
string version for build server
2015-08-07 11:41:41 -07:00
caktux
3ccab5a1e8
string version for build server
2015-08-07 14:13:33 -04:00
Jeffrey Wilcke
dcb23bc3ab
Merge pull request #1615 from obscuren/contract-addr-fix
...
xeth: fixed contract addr check
2015-08-07 05:38:02 -07:00
Jeffrey Wilcke
b6c5b3b4a7
xeth: fixed contract addr check
2015-08-07 14:32:06 +02:00
Jeffrey Wilcke
d7580f21f6
Merge pull request #1595 from obscuren/extra-data
...
cmd/geth, eth: added canonical extra data
2015-08-07 05:00:36 -07:00
Jeffrey Wilcke
b1fac4270d
Merge pull request #1614 from obscuren/web3-finite-fix
...
web3: regression. Fixes #1613
2015-08-07 04:59:15 -07:00
Jeffrey Wilcke
ac697326a6
core/vm: reduced big int allocations
...
Reduced big int allocation by making stack items modifiable. Instead of
adding items such as `common.Big0` to the stack, `new(big.Int)` is
added instead. One must expect that any item that is added to the stack
might change.
2015-08-07 12:52:23 +02:00
Jeffrey Wilcke
184e9ae9a8
core, tests: reduced state copy by N calls
...
Reduced the amount of state copied that are required by N calls by doing
a balance check prior to any state modifications.
2015-08-07 12:52:23 +02:00
Jeffrey Wilcke
846f34f78b
core/vm, tests: implemented semi-jit vm
...
* changed stack and removed stack ptr. Let go decide on slice reuse.
2015-08-07 12:52:17 +02:00
Jeffrey Wilcke
a33726b7db
web3: regression. Fixes #1613
2015-08-07 12:33:12 +02:00
Jeffrey Wilcke
132df860d9
miner, rpc: added length check for extra data
2015-08-07 12:24:44 +02:00
Jeffrey Wilcke
785b3e7a57
cmd/geth, eth: added canonical extra data
...
Implemented canonical extra data according to
https://github.com/ethereum/wiki/wiki/Extra-Data
2015-08-07 12:24:32 +02:00
Jeffrey Wilcke
e89536ca0b
Merge pull request #1596 from obscuren/submit-hashrate
...
miner, rpc: added submit hashrate for remote agents
2015-08-07 03:08:48 -07:00
Jeffrey Wilcke
ac10c9352e
Merge pull request #1610 from obscuren/address-check
...
xeth: added address hex check and length check
2015-08-07 02:05:54 -07:00
Jeffrey Wilcke
cf7cef4293
xeth: added address hex check and length check
2015-08-07 09:52:12 +02:00
Jeffrey Wilcke
698e98d981
Merge pull request #1600 from ethereum/fix-tests-windows
...
Fix tests on windows
2015-08-06 12:39:29 -07:00
Jeffrey Wilcke
a3b8169938
Merge pull request #1603 from ebuchman/trie_hex_fix
...
trie: hex fix
2015-08-06 12:02:55 -07:00
Ethan Buchman
46c9594081
trie: run codec tests, add benchmarks, faster
2015-08-06 14:04:16 -04:00
Jeffrey Wilcke
7baa5977c8
Merge pull request #1594 from ebuchman/trie_hex_fix
...
faster hex-prefix codec and string -> []byte
2015-08-06 08:44:19 -07:00
Felix Lange
803096ca0f
.gitattributes: add
2015-08-06 17:18:59 +02:00
Felix Lange
6ee908848c
p2p/nat: disable UPnP test on windows
2015-08-06 17:18:59 +02:00
Felix Lange
3832019964
common/compiler, common/docserver, jsre: fix tests on windows
2015-08-06 17:18:59 +02:00
Felix Lange
eae1191904
cmd/utils: fix path expansion on windows
2015-08-06 17:18:59 +02:00
Felix Lange
78b101e15d
common: remove windows path functions
...
They were unused and their tests failed on Windows.
2015-08-06 16:43:43 +02:00
Jeffrey Wilcke
74f6d90153
cmd/utils, core: disable exp diff for olympic net
2015-08-06 13:29:06 +02:00
Jeffrey Wilcke
c32073b11f
miner, rpc: added submit hashrate for remote agents
2015-08-06 12:58:54 +02:00
Felix Lange
b23b4dbd79
p2p/discover: close Table during testing
...
Not closing the table used to be fine, but now the table has a database.
2015-08-06 12:27:59 +02:00
Ethan Buchman
c1d516546d
faster hex-prefix codec and string -> []byte
2015-08-06 03:17:59 -04:00
Jeffrey Wilcke
82ef26f600
Merge branch 'develop'
2015-08-05 18:41:08 +02:00
Jeffrey Wilcke
ee5728ec03
fake commit for build server :(
2015-08-05 18:41:00 +02:00
Jeffrey Wilcke
9a02f53726
Merge branch 'develop'
2015-08-05 18:35:28 +02:00
Jeffrey Wilcke
98100f472c
cmd/geth: bumped version number
2015-08-05 18:35:23 +02:00
Jeffrey Wilcke
80e5f50713
Merge branch 'develop'
2015-08-05 18:08:52 +02:00
Jeffrey Wilcke
26f838796b
Merge pull request #1583 from obscuren/miner-price-order
...
miner, core: sort txs by price, nonce
2015-08-05 09:03:18 -07:00
Jeffrey Wilcke
35f271b264
miner, core: sort txs by price, nonce
2015-08-05 17:44:19 +02:00
Jeffrey Wilcke
f12e0161ca
Merge pull request #1588 from obscuren/diff-bomb
...
core, miner: added difficulty bomb
2015-08-05 04:26:57 -07:00
Jeffrey Wilcke
71d32f54f7
core, miner: added difficulty bomb
2015-08-05 13:09:09 +02:00
Jeffrey Wilcke
1f4ac6b05a
Merge pull request #1587 from obscuren/miner-race
...
miner: fixed worker race condition
2015-08-05 01:50:49 -07:00
Jeffrey Wilcke
d8590d9790
miner: fixed worker race condition
2015-08-04 20:54:21 +02:00
Jeffrey Wilcke
56219a5e7a
Merge pull request #1578 from Gustav-Simonsson/frontier_thawing
...
miner: gas limit strategy, target 3141592 & def gas price 50 Shannon
2015-08-04 11:53:39 -07:00
Gustav Simonsson
26c6e3b206
miner: gas limit strategy, target 3141592 & def gas price 50 Shannon
2015-08-04 15:20:28 +02:00
Jeffrey Wilcke
b01f2c29ae
Merge pull request #1574 from fjl/fdtrack
...
fdtrack: hack to track file descriptor usage
2015-08-04 03:51:16 -07:00
Jeffrey Wilcke
ff66e8fa29
Merge pull request #1562 from ethersphere/blankpasswd
...
jsre: leave out lines from history possibly containing passwords
2015-08-04 03:10:59 -07:00
Jeffrey Wilcke
17b481e3c3
Merge pull request #1581 from obscuren/olympic
...
cmd, core, eth: support for the olympic network
2015-08-04 00:54:07 -07:00
Felix Lange
5c949d3b3b
fdtrack: temporary hack for tracking file descriptor usage
...
Package fdtrack logs statistics about open file descriptors.
This should help identify the source of #1549 .
2015-08-04 03:10:27 +02:00
Jeffrey Wilcke
dcdb7059cc
cmd, core, eth: support for the olympic network
...
Added a --olympic flag which initialiser the olympic protocol settings
2015-08-03 18:15:48 +02:00
Felix Lange
bf48ed32dd
metrics: fix file descriptor leak when reading disk stats on linux
...
The disk stats file was not closed after reading.
2015-08-03 16:27:36 +02:00
Felix Lange
ba14957cf3
rpc/comms: use ConnState to track HTTP connections
...
The JSON-RPC server wraps TCP connections in order to be able to shut
down them down when RPC is stopped. This is rather scary code. Go 1.3
introduced the http.Server.ConnState hook for such purposes. We can use
this facility now that we depend on Go 1.4.
There are multiple reasons for the switch apart from making the code
less scary:
* the TCP listener no longer ticks every second to check a channel
* pending requests are allowed to finish after stopping the server
* we can time out idle keep-alive connections
2015-08-03 16:27:36 +02:00
Jeffrey Wilcke
97cdf84899
Merge pull request #1479 from tgerring/ethtest
...
Update ethtest default path for BlockTests
2015-08-03 07:18:48 -07:00
Jeffrey Wilcke
98db08c42f
Merge pull request #1548 from fjl/accounts-test-deflake
...
accounts: bump timeout in TestSignRace
2015-08-03 07:16:36 -07:00
Jeffrey Wilcke
cc6c5846e5
Merge pull request #1568 from obscuren/issue-1559
...
core: added a running flag to prevent panics in the chainmanager
2015-08-03 07:15:19 -07:00
Jeffrey Wilcke
db988a46dd
Merge pull request #1569 from obscuren/default-genesis
...
core: added default genesis block
2015-08-03 04:49:30 -07:00
Jeffrey Wilcke
7a75da63c6
core: added default genesis block
...
When a user runs a freshly setup geth w/o a database initialised the
default genesis block is decoded and inserted in to the database.
2015-08-02 01:23:02 +02:00
Jeffrey Wilcke
33efb3381c
Merge pull request #1461 from bas-vk/eth_resend
...
Old transaction after resend was not removed from pool
2015-08-01 16:18:54 -07:00
Felix Lange
5aec1d94ad
accounts: bump timeout and spin less in TestSignRace
...
This should fix the flakeyness.
2015-08-02 00:49:53 +02:00
Jeffrey Wilcke
a8b39b5cc0
Merge pull request #1541 from bas-vk/issue1518
...
Improved error handling for NewTransactionFromBytes
2015-08-01 08:47:32 -07:00
Jeffrey Wilcke
acd2c4e520
core: added a running flag to prevent panics in the chainmanager
...
The running flag will determine whether the chain manager is still
running or not. This will prevent the quit channel from being closed
twice resulting in a panic. This PR should fix this issue.
Closes #1559
2015-08-01 12:32:28 +02:00
Jeffrey Wilcke
ab85a3593a
Merge pull request #1545 from obscuren/log-index
...
core/state: Set log index. Closes #1226
2015-07-31 10:36:42 -07:00
Jeffrey Wilcke
c1c06fffcb
Merge pull request #1561 from karalabe/add-missing-autocompletes
...
rpc/api: add missing autocomplete commands
2015-07-31 03:09:08 -07:00
zelig
6628eeb6ca
jsre: leave out lines from history containing methods of the personal module
2015-07-31 11:51:18 +02:00
Péter Szilágyi
0d3a8ad6dd
rpc/api: add missing autocomplete commands
2015-07-31 12:46:16 +03:00
Jeffrey Wilcke
4231de3914
Merge pull request #1553 from prusnak/develop
...
remove elliptic.P224 usage
2015-07-30 03:59:25 -07:00
Pavol Rusnak
3f07afbbd2
remove elliptic.P224 usage
...
Fedora/RedHat distros comply with US patent law and remove this curve,
which makes it impossible to run ethereum with distro provided Golang.
File crypto/ecies/README claims it is unsupported anyway.
2015-07-30 12:47:45 +02:00
Jeffrey Wilcke
64e2f52c2e
Merge pull request #1534 from obscuren/issue-1040
...
rpc: to in eth_call no longer required. Fixed eth_estimateGas
2015-07-30 03:25:47 -07:00
Jeffrey Wilcke
d261c3f455
rpc: to in Call no longer required. Fixed eth_estimateGas
2015-07-29 15:12:12 +02:00
Jeffrey Wilcke
e7f4232b10
Merge pull request #1544 from karalabe/fix-stall-detector
...
eth, eth/downloader: don't report stall if fetcher filled the block
2015-07-29 06:11:43 -07:00
Jeffrey Wilcke
f715547fc7
core/state: Set log index. Closes #1226
2015-07-29 15:08:59 +02:00
Jeffrey Wilcke
fa286688ab
Merge pull request #1546 from obscuren/tests-update
...
tests: updated
2015-07-29 06:07:19 -07:00
Jeffrey Wilcke
03c39d4fc0
tests: updated
2015-07-29 15:01:42 +02:00
Péter Szilágyi
6adbaabc65
eth, eth/downloader: don't report stall if fetcher filled the block
2015-07-29 15:39:08 +03:00
Bas van Kervel
81e2124ea2
improved error detection and handling for NewTransactionFromBytes
...
integrated review comments
2015-07-29 10:30:00 +02:00
Jeffrey Wilcke
cc27be9d44
Merge pull request #1543 from enriquefynn/develop
...
FreeBSD support
2015-07-28 16:20:13 -07:00
Fynn
7065ebd2ed
FreeBSD support
2015-07-28 19:16:16 -03:00
Jeffrey Wilcke
a281df783d
Merge pull request #1533 from ethersphere/frontier/etherbase
...
Etherbase defaults to first account even if it is created during the session
2015-07-28 05:11:43 -07:00
Jeffrey Wilcke
1fad8798ec
Merge pull request #1515 from fjl/license-fixes
...
all: fix license headers one more time
2015-07-28 04:29:42 -07:00
Bas van Kervel
7e31df3987
bugfix, pending transaction was resend with new gas price/limit but not removed from transaction pool
2015-07-28 10:42:31 +02:00
Felix Lange
572e78cee0
Merge pull request #1536 from fjl/fix-go1.5-build
...
crypto: fix build with Go 1.5
2015-07-28 00:59:52 +02:00
Felix Lange
453d2c9ce1
crypto: fix build with Go 1.5
2015-07-27 19:13:45 +02:00
zelig
1356daad27
etherbase defaults to first account even if created during the session
2015-07-27 10:50:29 +02:00
Jeffrey Wilcke
d18d256442
Merge pull request #1529 from obscuren/extra-data-fix
...
core: genesis extra data field fix
2015-07-26 15:15:36 -07:00
Jeffrey Wilcke
3530acb9e2
core: genesis extra data field fix
2015-07-26 14:44:54 +02:00
Jeffrey Wilcke
8a5ea466e4
Merge pull request #1528 from obscuren/reduce-extra-data
...
params: reduce extra data to 32 bytes & target block time
2015-07-26 04:04:10 -07:00
Jeffrey Wilcke
1e241e84f7
params: reduce extra data to 32 bytes
2015-07-26 12:47:57 +02:00
Jeffrey Wilcke
e86233abc9
Merge pull request #1525 from obscuren/genesis-write-fix
...
core: fixed genesis write out to write only canon number
2015-07-25 13:13:27 -07:00
Jeffrey Wilcke
c1c895a36b
core: fixed genesis write out to write only canon number
2015-07-25 21:48:53 +02:00
Jeffrey Wilcke
73a576c9af
Merge pull request #1524 from obscuren/default-extra
...
eth: set default miner extra to client name
2015-07-25 08:58:08 -07:00
Jeffrey Wilcke
665eaff9b9
Merge pull request #1520 from obscuren/reward-5eth
...
core: 5 ether block reward
2015-07-25 08:57:33 -07:00
Jeffrey Wilcke
9afda6ab8c
core: 5 ether block reward
2015-07-25 17:47:20 +02:00
Jeffrey Wilcke
3adaeb1dbc
eth: set default miner extra to client name
2015-07-25 17:36:56 +02:00
Jeffrey Wilcke
0efcd7ed05
Merge pull request #1521 from obscuren/client-update
...
cmd/geth, core, eth: Version 1.0.0
2015-07-25 08:36:04 -07:00
Jeffrey Wilcke
4019e2a6f2
Merge pull request #1497 from obscuren/remove-rle
...
ethdb, trie: removed RLE compression
2015-07-25 08:35:40 -07:00
Jeffrey Wilcke
f6097f4a0a
Merge pull request #1522 from obscuren/genesis-block-check
...
core: check genesis block before writeout
2015-07-25 08:10:08 -07:00
Jeffrey Wilcke
d4428cc77f
Merge pull request #1523 from obscuren/lower-gasprice
...
cmd/util: lowered default gas price
2015-07-25 08:09:55 -07:00
Jeffrey Wilcke
ba15f9d282
cmd/util: lowered default gas price
2015-07-25 17:03:10 +02:00
Jeffrey Wilcke
0c718afe90
core: check genesis block before writeout
2015-07-25 16:53:35 +02:00
Jeffrey Wilcke
036e6301af
cmd/geth, core, eth: Version 1.0.0
...
Genesis release. Closes #1402
Conflicts:
cmd/geth/main.go
2015-07-25 13:55:56 +02:00
Jeffrey Wilcke
6cffa743ee
Merge pull request #1519 from obscuren/develop
...
web3: updated 0.9.1
2015-07-25 04:06:43 -07:00
Jeffrey Wilcke
5001f778aa
web3: updated 0.9.1
2015-07-25 12:22:39 +02:00
Felix Lange
cd657b9878
Godeps: use BSD-licensed version of gopkg.in/karalabe/cookiejar.v2
2015-07-24 14:23:02 +02:00
Felix Lange
67598d9d08
crypto/sha3: add full license headers
2015-07-24 12:32:58 +02:00
Felix Lange
fd2356c620
common: remove config.go
...
The code in config.go is unused. The main reason for removing it is to
get rid github.com/rakyll/goini in Godeps (it has no license).
2015-07-24 11:43:32 +02:00
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a .
2015-07-23 18:35:11 +02:00
Jeffrey Wilcke
adc7ab0dd6
Merge pull request #1507 from obscuren/batch-write
...
cmd/core,xeth: removed unneeded states & added batch writes
2015-07-23 07:50:07 -07:00
Jeffrey Wilcke
8f56eea77d
ethdb, trie: removed RLE compression
2015-07-23 12:57:33 +02:00
Jeffrey Wilcke
8fc9830971
cmd/core,xeth: removed unneeded states & added batch writes
2015-07-23 10:45:31 +02:00
Jeffrey Wilcke
0cff61beda
Merge pull request #1510 from fjl/license-fixes
...
all: license fixes
2015-07-23 01:43:11 -07:00
Jeffrey Wilcke
b403b9e4c3
Merge pull request #1508 from karalabe/database-caching
...
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
2015-07-23 01:17:18 -07:00
Felix Lange
26a269ea09
Merge pull request #1511 from karalabe/rlp-data-race
...
core: fix an RLP encoding data race due to deep struct copy
2015-07-22 20:10:41 +02:00
Péter Szilágyi
04bb89604e
core: fix an RLP encoding data race due to deep struct copy
2015-07-22 20:54:53 +03:00
Felix Lange
0428cae226
remove LICENSE files
2015-07-22 18:54:45 +02:00
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
2015-07-22 18:51:45 +02:00
Felix Lange
f4acdea402
crypto: fix license of curve.go
...
crypto/curve.go is not our code and has its own license. This commit
excludes it in update-license.go and removes our GPL header.
2015-07-22 18:50:31 +02:00
Péter Szilágyi
c7e7778f2a
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
2015-07-22 14:00:52 +03:00
Felix Lange
d1d45aa839
Merge pull request #1503 from fjl/fix-accounts-race
...
accounts: fix data race when key is locked after the unlock timeout
2015-07-22 13:00:09 +02:00
Taylor Gerring
d103af5dd4
Disassociate test directory from test name
2015-07-22 11:39:36 +01:00
Jeffrey Wilcke
ed1d2f858e
Merge pull request #1481 from tgerring/legalese
...
Legalese updates
2015-07-22 03:35:33 -07:00
Jeffrey Wilcke
482cc4957d
Merge pull request #1500 from karalabe/fix-miner-race
...
miner: fix current work data race
2015-07-22 03:16:13 -07:00
Jeffrey Wilcke
f1daed65b1
Merge pull request #1502 from ethereum/canaryFix
...
Fixed canary to require 2+ nonzero, not sum 2+
2015-07-20 16:17:48 -07:00
Taylor Gerring
cf5313f13e
Update disclaimer
2015-07-20 18:49:25 +02:00
Felix Lange
06d5898d6a
crypto: remove debug print call after decrypting a key from disk
2015-07-20 18:04:23 +02:00
Felix Lange
7662dd9bbb
accounts: fix data race when key is locked after the unlock timeout
...
While here, also improve the docs and speed up the tests.
The tests used the scrypt keystore with ridiculous settins and took 20s
each.
2015-07-20 18:04:23 +02:00
Vitalik Buterin
8160b8618d
Fixed canary to require 2+ nonzero, not sum 2+
2015-07-20 16:28:28 +02:00
Péter Szilágyi
3029349761
miner: fix current work data race
2015-07-20 14:37:43 +03:00
Jeffrey Wilcke
02c5022742
Merge pull request #1496 from karalabe/fix-xeth-races
...
xeth: fix #1485 , data race in fiilter creation and event firing
2015-07-20 04:27:10 -07:00
Péter Szilágyi
3642441ca3
xeth: fix #1485 , data race in fiilter creation and event firing
2015-07-20 14:02:02 +03:00
Jeffrey Wilcke
12bb743b35
Merge pull request #1484 from fjl/rlp-json-tests
...
cmd/ethtest, tests: add support for RLP JSON tests
2015-07-19 05:05:16 -07:00
Jeffrey Wilcke
26c0fa1cb0
Merge pull request #1480 from obscuren/miner-state-sync
...
miner: moved state sync
2015-07-19 05:03:59 -07:00
Jeffrey Wilcke
a38f3740d6
Merge pull request #1488 from ethereum/travis
...
Travis container support
2015-07-18 09:05:29 -07:00
Felix Lange
345590f27f
rlp: fix check for canonical byte array size
...
Decoding did not reject byte arrays of length one with a single element
b where 55 < b < 128. Such byte arrays must be rejected because
they must be encoded as the single byte b instead.
2015-07-18 16:23:35 +02:00
Taylor Gerring
5a41326521
Travis container support
2015-07-18 16:12:48 +02:00
Felix Lange
cefd948267
rlp: reject trailing data when using DecodeBytes
2015-07-18 01:47:17 +02:00
Felix Lange
593b1b65e7
tests: document RLP tests
2015-07-17 15:42:23 +02:00
Felix Lange
5da82077d1
cmd/ethtest, tests: add support for RLP JSON tests
2015-07-17 15:13:24 +02:00
Jeffrey Wilcke
1b9ef0e52d
miner: moved state sync
...
Moved the state sync so it only syncs the state when the block mining yield a possitive result
2015-07-16 14:19:27 +02:00
Jeffrey Wilcke
a75b95b876
Merge pull request #1477 from tgerring/legalese
...
Prompt user to accept legalese when datadir doesn't exist
2015-07-16 04:40:15 -07:00
Jeffrey Wilcke
e954375109
Merge pull request #1469 from obscuren/smart-mining
...
miner: smart mining
2015-07-16 04:39:07 -07:00
Taylor Gerring
618991f136
Move text to separate file
2015-07-16 13:34:34 +02:00
Jeffrey Wilcke
bc6b6932d0
Merge pull request #1476 from obscuren/deadlock-logs
...
xeth: removed mutex lock
2015-07-16 03:35:43 -07:00
Taylor Gerring
1909d26fe2
Prompt user to accept legalese when datadir doesn't exist
2015-07-16 12:27:42 +02:00
Jeffrey Wilcke
b1d0d3c0ed
xeth: removed unneeded mutex lock
2015-07-16 11:04:53 +02:00
Jeffrey Wilcke
9addb3df3a
Merge pull request #1475 from obscuren/issue1473
...
core: during chain reorg rewrite receipts and transactions
2015-07-15 13:17:07 -07:00
Jeffrey Wilcke
e870e61bc9
miner: smart mining
...
Work is now handled and carried over multiple sessions. Previously one
session only was assumed, potentially resulting in invalid (outdated)
work
* Larger work / result queue
* Full validation option
2015-07-15 20:37:12 +02:00
Jeffrey Wilcke
cecc9cdd2f
Merge pull request #1468 from Gustav-Simonsson/xeth_transact_logging
...
xeth: log signed tx hash
2015-07-15 11:35:51 -07:00
Jeffrey Wilcke
e17d8ddbeb
core: during chain reorg rewrite receipts and transactions
...
Added PutBlockReceipts; storing receipts by blocks. Eventually this will
require pruning during some cleanup cycle. During forks the receipts by
block are used to get the new canonical receipts and transactions.
This PR fixes #1473 by rewriting transactions and receipts from the point
of where the fork occured.
2015-07-14 18:40:03 +02:00
Ethan Buchman
37efd08b42
p2p: validate recovered ephemeral pubkey against checksum in decodeAuthMsg
2015-07-14 03:06:44 +00:00
Gustav Simonsson
afba798357
xeth: log signed tx hash
2015-07-13 03:09:02 +02:00
Jeffrey Wilcke
796c18db93
Merge pull request #1462 from obscuren/genesis
...
core: genesis preparation
2015-07-12 03:45:45 -07:00
Jeffrey Wilcke
a32c51effd
cmd, core, eth, common: genesis preparation
...
Implemented the --genesis flag thru which we can set a custom genesis
block, including the official Ethereum genesis block.
2015-07-10 17:37:41 +02:00
Jeffrey Wilcke
5a810758db
cmd/geth: bump version 0.9.39
2015-07-09 18:07:52 +02:00
Jeffrey Wilcke
6f9377475c
Merge branch 'release/0.9.38' into develop
2015-07-09 18:06:49 +02:00