Ivan Daniluk
d2fe83dc5c
whisper/mailserver: pass init error to the caller ( #16671 )
...
* whisper/mailserver: pass init error to the caller
* whisper/mailserver: add returns to fmt.Errorf
* whisper/mailserver: check err in mailserver init test
7 years ago
Martin Holst Swende
5d4d79ae26
cmd/clef: documentation about setup ( #16568 )
...
clef: documentation about setup
7 years ago
Martin Holst Swende
8dfa4f46a9
evm/main: use blocknumber from genesis
7 years ago
Martin Klepsch
852aa143ac
cmd/utils: point users to --syncmode under DEPRECATED ( #16572 )
...
Indicate that --light and --fast options are replaced by --syncmode
7 years ago
Felix Lange
e7067be94f
cmd/geth, mobile: add memsize to pprof server ( #16532 )
...
* cmd/geth, mobile: add memsize to pprof server
This is a temporary change, to be reverted before the next release.
* cmd/geth: fix variable name
7 years ago
Péter Szilágyi
abd881f6d4
Revert "cmd/puppeth: fix node deploys for updated dockerfile user"
7 years ago
Vie
26a4dbb467
cmd/geth: update the copyright year in the geth command usage ( #16537 )
7 years ago
Wuxiang
8f8774cf6d
all: fix various typos ( #16533 )
...
* fix typo
* fix typo
* fix typo
7 years ago
Felix Lange
52b046c9b6
rpc: clean up IPC handler ( #16524 )
...
This avoids logging accept errors on shutdown and removes
a bit of duplication. It also fixes some goimports lint warnings.
7 years ago
Zhenguo Niu
661f5f3dac
cmd/utils: fix help template issue for subcommands ( #16351 )
7 years ago
thomasmodeneis
ba1030b6b8
build: enable goimports and varcheck linters ( #16446 )
7 years ago
Martin Holst Swende
ec3db0f56c
cmd/clef, signer: initial poc of the standalone signer ( #16154 )
...
* signer: introduce external signer command
* cmd/signer, rpc: Implement new signer. Add info about remote user to Context
* signer: refactored request/response, made use of urfave.cli
* cmd/signer: Use common flags
* cmd/signer: methods to validate calldata against abi
* cmd/signer: work on abi parser
* signer: add mutex around UI
* cmd/signer: add json 4byte directory, remove passwords from api
* cmd/signer: minor changes
* cmd/signer: Use ErrRequestDenied, enable lightkdf
* cmd/signer: implement tests
* cmd/signer: made possible for UI to modify tx parameters
* cmd/signer: refactors, removed channels in ui comms, added UI-api via stdin/out
* cmd/signer: Made lowercase json-definitions, added UI-signer test functionality
* cmd/signer: update documentation
* cmd/signer: fix bugs, improve abi detection, abi argument display
* cmd/signer: minor change in json format
* cmd/signer: rework json communication
* cmd/signer: implement mixcase addresses in API, fix json id bug
* cmd/signer: rename fromaccount, update pythonpoc with new json encoding format
* cmd/signer: make use of new abi interface
* signer: documentation
* signer/main: remove redundant option
* signer: implement audit logging
* signer: create package 'signer', minor changes
* common: add 0x-prefix to mixcaseaddress in json marshalling + validation
* signer, rules, storage: implement rules + ephemeral storage for signer rules
* signer: implement OnApprovedTx, change signing response (API BREAKAGE)
* signer: refactoring + documentation
* signer/rules: implement dispatching to next handler
* signer: docs
* signer/rules: hide json-conversion from users, ensure context is cleaned
* signer: docs
* signer: implement validation rules, change signature of call_info
* signer: fix log flaw with string pointer
* signer: implement custom 4byte databsae that saves submitted signatures
* signer/storage: implement aes-gcm-backed credential storage
* accounts: implement json unmarshalling of url
* signer: fix listresponse, fix gas->uint64
* node: make http/ipc start methods public
* signer: add ipc capability+review concerns
* accounts: correct docstring
* signer: address review concerns
* rpc: go fmt -s
* signer: review concerns+ baptize Clef
* signer,node: move Start-functions to separate file
* signer: formatting
7 years ago
Felix Lange
c7ab3e5544
common: delete StringToAddress, StringToHash ( #16436 )
...
* common: delete StringToAddress, StringToHash
These functions are confusing because they don't parse hex, but use the
bytes of the string. This change removes them, replacing all uses of
StringToAddress(s) by BytesToAddress([]byte(s)).
* eth/filters: remove incorrect use of common.BytesToAddress
7 years ago
Péter Szilágyi
7c1e9a5004
cmd/puppeth: fix node deploys for updated dockerfile user
7 years ago
dm4
3ebcf92b42
cmd/evm: print vm output when debug flag is on ( #16326 )
7 years ago
Zhenguo Niu
c43792a42c
cmd/geth: update template for 'geth bug' command ( #16350 )
7 years ago
Nguyen Sy Thanh Son
2a4bd55b43
cmd/geth: remove relOracle variable ( #16434 )
7 years ago
Zhenguo Niu
db9b2f5405
cmd/puppeth: add constraints to network name ( #16336 )
...
* cmd/puppeth: add constraints to network name
* cmd/puppeth: update usage of network arg
* cmd/puppeth: avoid package dependency on utils
7 years ago
Péter Szilágyi
495bdb0c71
cmd: export preimages in RLP, support GZIP, uniform with block export
7 years ago
rjl493456442
b6b6f52ec8
cmd: implement preimage dump and import cmds
7 years ago
Guillaume Ballet
3d013c1939
whisper: some components are still using v5, switch to v6
7 years ago
Felföldi Zsolt
1488fdaf19
cmd/utils: fix maxpeers vs lightpeers logic ( #16125 )
7 years ago
Vlad Bokov
52697fb1b2
cmd/puppeth: allow any vhost in wallet
7 years ago
Kurkó Mihály
39c16c8a1e
cmd, ethdb, vendor: integrate leveldb iostats ( #16277 )
...
* cmd, dashboard, ethdb, vendor: send iostats to dashboard
* ethdb: change names
* ethdb: handle parsing errors
* ethdb: handle iostats syntax error
* ethdb: r -> w
7 years ago
Kurkó Mihály
704840a8ad
cmd, dashboard: use webpack dev server, remove custom assets ( #16263 )
...
* cmd, dashboard: remove custom assets, webpack dev server
* dashboard: yarn commands, small fixes
7 years ago
gluk256
f1d440a437
whisper: final refactoring ( #16259 )
...
whisper: final refactoring
7 years ago
Péter Szilágyi
b7e57ca1d0
cmd/evm, core/vm, internal/ethapi: don't disable call gas metering
7 years ago
Martin Holst Swende
478143d69a
utils: fix #16138 by checking if vhosts flag is set ( #16141 )
...
* utils: fix #16138 by checking if vhosts flag is set
* utils,node: fix defaults for rpcvhosts
* node,utils: address review concerns
7 years ago
Vlad
61a061c9b4
whisper: refactoring go-routines
7 years ago
Vlad
95cca85d6d
whisper: minor refactoring
7 years ago
Vlad
6219a33822
whisper: filereader mode introduced to wnode
7 years ago
Péter Szilágyi
6f13e515f4
cmd/faucet: update state in background, skip when busy
7 years ago
Zhenguo Niu
d520bf4503
cmd/swarm: fix some typos in manifest cmd ( #16227 )
...
Replace "atleast" with "at least" in the manifest error message.
7 years ago
Vlad
ee75a90ab4
whisper: topics replaced by bloom filters
7 years ago
gluk256
5a150e1b77
whisper: serious security issue fixed ( #16219 )
...
The diagnostic tool was saving the unencrypted version of the messages, which is an obvious
security flaw. As of this commit:
* encrypted messages saved instead of plain text.
* all messages are stored, even that created by the user of wnode.
7 years ago
Saulius Grigaitis
c41f1a3e23
puppeth: fix Parity Chain Spec parameter GasLimitBoundDivision ( #16188 )
7 years ago
Vlad
f4e676cccd
whipser: comments updated
7 years ago
Vlad
6e0667fa06
whisper: wnode updated - all messages are saved if savedir param is given
7 years ago
Domino Valdano
d398d04e27
cmd/geth: fix broken links to JavaScript-Console wiki in cmd line help ( #16183 )
...
* Fixed broken link to JavaScript-Console wiki in cmd line help
* cmd/geth: Added missing r in 'JavaScript'
7 years ago
Anton Evangelatov
dcca613a0b
swarm: initial instrumentation ( #15969 )
...
* swarm: initial instrumentation with go-metrics
* swarm: initialise metrics collection and add ResettingTimer to HTTP requests
* swarm: update metrics flags names. remove redundant Timer.
* swarm: rename method for periodically updating gauges
* swarm: finalise metrics after feedback
* swarm/network: always init kad metrics containers
* swarm/network: off-by-one index in metrics containers
* swarm, metrics: resolved conflicts
7 years ago
Martin Holst Swende
44d40ffce1
core, vm, common: define constantinople fork + shift ( #16045 )
...
* core, vm, common: define constantinople fork, start implementation of shift instructions
* vm: more testcases
* vm: add tests for intpool erroneous intpool handling
* core, vm, common: fix constantinople review concerns
* vm: add string<->op definitions for new opcodes
7 years ago
Péter Szilágyi
72c4c50777
cmd/faucet: resolve twitter user from final redirect
7 years ago
Nilesh Trivedi
085d3fbf72
cmd/puppeth: Don't allow hyphen in network name. Fixes #16155
7 years ago
Péter Szilágyi
01507d9b9d
cmd, console: support all termination signals
7 years ago
Guillaume Ballet
5f9b01a283
whisper: only use the node id as a p2p id, not for sending messages ( #16102 )
...
This is in preparation for the switch to libp2p: the ID generated
will be from a private key created with the help of libp2p's crypto
library, while Whisper will still use Go's default crypto libraries
for encrypting its messages. This change removes a conflict.
It shouldn't have any impact as the person receiving emails is
the user, not the node.
7 years ago
Martin Holst Swende
de93a9d437
main: add gc flags to import-command
7 years ago
Felix Lange
a5c0bbb4f4
all: update license information ( #16089 )
7 years ago
Péter Szilágyi
12dab53495
cmd/puppeth: unify discv4 and discv5 ports
7 years ago
Martin Holst Swende
589b603a9b
rpc: dns rebind protection ( #15962 )
...
* cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks
* p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d
* rpc: add wildcard support for rpcallowedhosts + go fmt
* cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check
* http, rpc, utils: make vhosts into map, address review concerns
* node: change log messages to use geth standard (not sprintf)
* rpc: fix spelling
7 years ago
Felix Lange
9123eceb0f
p2p, p2p/discover: misc connectivity improvements ( #16069 )
...
* p2p: add DialRatio for configuration of inbound vs. dialed connections
* p2p: add connection flags to PeerInfo
* p2p/netutil: add SameNet, DistinctNetSet
* p2p/discover: improve revalidation and seeding
This changes node revalidation to be periodic instead of on-demand. This
should prevent issues where dead nodes get stuck in closer buckets
because no other node will ever come along to replace them.
Every 5 seconds (on average), the last node in a random bucket is
checked and moved to the front of the bucket if it is still responding.
If revalidation fails, the last node is replaced by an entry of the
'replacement list' containing recently-seen nodes.
Most close buckets are removed because it's very unlikely we'll ever
encounter a node that would fall into any of those buckets.
Table seeding is also improved: we now require a few minutes of table
membership before considering a node as a potential seed node. This
should make it less likely to store short-lived nodes as potential
seeds.
* p2p/discover: fix nits in UDP transport
We would skip sending neighbors replies if there were fewer than
maxNeighbors results and CheckRelayIP returned an error for the last
one. While here, also resolve a TODO about pong reply tokens.
7 years ago