Wenbiao Zheng
574378edb5
cmd: remove faucet/puppeth dead code ( #16991 )
...
* cmd/faucet: authGitHub is not used anymore
* cmd/puppeth: remove not used code
7 years ago
Jeremy Schlatter
3fb5f3ae11
cmd/utils: fix NetworkId default when -dev is set ( #16833 )
...
Prior to this change, when geth was started with `geth -dev -rpc`,
it would report a network id of `1` in response to the `net_version` RPC
request. But the actual network id it used to verify transactions
was `1337`.
This change causes geth instead respond with `1337` to the `net_version`
RPC when geth is started with `geth -dev -rpc`.
7 years ago
Felix Lange
0255951587
crypto: replace ToECDSAPub with error-checking func UnmarshalPubkey ( #16932 )
...
ToECDSAPub was unsafe because it returned a non-nil key with nil X, Y in
case of invalid input. This change replaces ToECDSAPub with
UnmarshalPubkey across the codebase.
7 years ago
Steven Roose
13af276418
cmd/ethkey: add command to change key passphrase ( #16516 )
...
This change introduces
ethkey changepassphrase <keyfile>
to change the passphrase of a key file.
7 years ago
Bruno Škvorc
90b22773e9
cmd/puppeth: fixed a typo in a wizard input query ( #16910 )
7 years ago
kiel barry
cbfb40b0aa
params: fix golint warnings ( #16853 )
...
params: fix golint warnings
7 years ago
Antonio Salazar Cardozo
4cf2b4110e
cmd/abigen: support for reading solc output from stdin ( #16683 )
...
Allow the --abi flag to be given - to indicate that it should read the
ABI information from standard input. It expects to read the solc output
with the --combined-json flag providing bin, abi, userdoc, devdoc, and
metadata, and works very similarly to the internal invocation of solc,
except it allows external invocation of solc.
This facilitates integration with more complex solc invocations, such
as invocations that require path remapping or --allow-paths tweaks.
Simple usage example:
solc --combined-json bin,abi,userdoc,devdoc,metadata *.sol | abigen --abi -
7 years ago
rjl493456442
a20cc75b4a
cmd/geth: cap cache allowance
7 years ago
gary rong
7beccb29be
all: get rid of error when creating memory database ( #16716 )
...
* all: get rid of error when create mdb
* core: clean up variables definition
* all: inline mdb definition
7 years ago
kiel barry
4ea493e7eb
cmd: various golint fixes ( #16700 )
...
* cmd: various golint fixes
* cmd: update to pr change request
* cmd: update to pr change request
7 years ago
Péter Szilágyi
6cf0ab38bd
core/rawdb: separate raw database access to own package ( #16666 )
7 years ago
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