Felix Lange
84d11c19fd
eth: remove dapp database remains
8 years ago
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.
8 years ago
Péter Szilágyi
d6625ac34d
Merge pull request #2891 from fjl/rpc-client-fixes
...
rpc: client bug fixes
8 years ago
Péter Szilágyi
b46b36729f
Merge pull request #2868 from karalabe/downloader-abort-master-drop
...
eth/downloader: abort sync if master drops (timeout prev)
8 years ago
Péter Szilágyi
893fabd336
Merge pull request #2867 from karalabe/dao-challenge-finish
...
eth, eth/downloader: don't forward the DAO challenge header
8 years ago
Péter Szilágyi
44ea0da2b0
Merge pull request #2861 from karalabe/track-peer-heads-properly
...
eth, eth/downloader: better remote head tracking
8 years ago
Felix Lange
4f4e1026f5
Merge pull request #2896 from karalabe/fix-xgo-crossbuilds
...
Makefile, build: move cross compilation into ci.go
8 years ago
Péter Szilágyi
8c23f20c68
Makefile, build: move cross compilation into ci.go
8 years ago
Felix Lange
4f65227971
Merge pull request #2892 from fjl/vm-hide-ecrecover-message
...
core/vm: hide ecrecover error message
8 years ago
Felix Lange
e4736fe469
core/vm: hide ecrecover error message
...
Fixes #2825
8 years ago
Felix Lange
e32925397b
rpc: add context argument to EthSubscribe
...
It's inconsistent not to pass it and most callers will
work with contexts anyway.
8 years ago
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.
8 years ago
Felix Lange
d445a9aafb
Merge pull request #2889 from fjl/godeps-update-notify
...
Godeps: update github.com/rjeczalik/notify to f627deca7a51
8 years ago
Felix Lange
464660651d
rpc: don't exceed context deadline while waiting for send lock
8 years ago
Felix Lange
4be37222ef
Godeps: update github.com/rjeczalik/notify to f627deca7a51
...
Fixes #2829
8 years ago
Felix Lange
b8ba80bff7
Merge pull request #2740 from Firescar96/removepeer
...
node, p2p, internal: Add ability to remove peers via admin interface
8 years ago
Péter Szilágyi
8ec6ccc54d
Merge pull request #2870 from lukeyeager/patch-1
...
Fix README typo
8 years ago
Luke Yeager
1ca9e552d9
README: Fix typo
...
"fine graned" -> "fine-grained"
8 years ago
Péter Szilágyi
8f0a4a25f8
eth/downloader: abort sync if master drops (timeout prev)
8 years ago
Péter Szilágyi
071af57bcf
eth, eth/downloader: don't forward the DAO challenge header
8 years ago
Péter Szilágyi
a724952f75
Merge pull request #2862 from yep/faster-git-clone
...
containers/docker: use shallow clone of single branch
8 years ago
yep
a4215f469c
containers/docker: whitespace changes only, make future diffs more readable
8 years ago
yep
4c1abcb0ce
containers/docker: use shallow clone of single branch
8 years ago
Péter Szilágyi
1dd272080d
eth, eth/downloader: better remote head tracking
8 years ago
Felix Lange
3e3a79ea13
Merge pull request #2855 from karalabe/downloader-fix-stall-drop
...
eth/downloader: fix the stall checks/drops during sync
8 years ago
bas-vk
771655e3fe
Merge pull request #2808 from fjl/rpc-client-3
...
rpc: add new client, use it everywhere
8 years ago
Felix Lange
60cd5bf939
Merge pull request #2842 from fjl/downloader-remove-eth61
...
eth, eth/downloader, eth/fetcher: delete eth/61 sync code
8 years ago
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.
8 years ago
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.
8 years ago
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.
8 years ago
Péter Szilágyi
c7c82f1b44
eth/downloader: fix the stall checks/drops during sync
8 years ago
Péter Szilágyi
f58ac2b46b
Merge pull request #2712 from bas-vk/sendtx
...
eth/api: rename signAndSendTransaction to sendTransaction
8 years ago
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.
8 years ago
Bas van Kervel
4ee00b2309
eth/api: rename signAndSendTransaction to sendTransaction
8 years ago
Péter Szilágyi
fb81bc3291
Merge pull request #2851 from yep/alpine-3-4
...
containers/docker: update to alpine 3.4
8 years ago
Péter Szilágyi
c646d287f8
Merge pull request #2833 from karalabe/fix-dao-challenge-annoyance
...
eth: cancel DAO challenge on peer drop (annoying log)
8 years ago
yep
51d4539a79
containers/docker: update to alpine 3.4
8 years ago
Péter Szilágyi
f273c64a94
Merge pull request #2836 from fjl/godeps-update-leveldb
...
Godeps: bump github.com/syndtr/goleveldb/... to ab8b5dcf104
8 years ago
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
8 years ago
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
8 years ago
Felix Lange
4d014d6d7e
Godeps: bump github.com/syndtr/goleveldb/... to ab8b5dcf104
8 years ago
Péter Szilágyi
fe56461387
Merge pull request #2834 from zsfelfoldi/chaindb-upgrade-fix
...
eth: fixed chaindb upgrade
8 years ago
zsfelfoldi
56efed71b5
eth: fixed chaindb upgrade
8 years ago
Péter Szilágyi
91f18ffd47
eth: cancel DAO challenge on peer drop (annoying log)
8 years ago
Jeffrey Wilcke
a4c4125b11
Merge pull request #2814 from karalabe/dao-hard-finalcombo
...
cmd, core, eth, miner, params, tests: finalize the DAO fork
8 years ago
Péter Szilágyi
993b412160
cmd/utils, eth: display the user's current fork, minor text tweak
8 years ago
Péter Szilágyi
2c2e389b77
cmd, core, eth, miner, params, tests: finalize the DAO fork
8 years ago
Péter Szilágyi
3291235711
accounts, core, eth: pass chain config for chain maker to test DAO
8 years ago
Péter Szilágyi
461cdb593b
core, params, tests: add DAO hard-fork balance moves
8 years ago
Péter Szilágyi
7f00e8c033
core, eth: enforce network split post DAO hard-fork
8 years ago