Taylor Gerring
1909d26fe2
Prompt user to accept legalese when datadir doesn't exist
2015-07-16 12:27:42 +02: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
ee04b71887
cmd/geth, cmd/utils: changed ParamsToAddress to return error
...
ParamsToAddress no longer aborts the process, it now returns an error
instead so that the caller can handle the error properly.
2015-07-07 14:55:27 +02:00
Felix Lange
bdae4fd573
all: add some godoc synopsis comments
2015-07-07 14:12:45 +02:00
Felix Lange
e813626ee1
all: remove @author comments
2015-07-07 14:12:44 +02:00
Felix Lange
ea54283b30
all: update license information
2015-07-07 14:12:44 +02:00
Jeffrey Wilcke
35cd355c14
cmd,eth,rpc,tests: default coinbase
2015-07-07 10:32:05 +02:00
Felix Lange
d4c2e9de32
cmd/utils: fix interrupt handling to actually see subsequent interrupts
2015-07-06 16:48:34 +02:00
Felix Lange
5615fc4714
cmd/geth, cmd/utils: improve interrupt handling
...
The new strategy for interrupts is to handle them explicitly.
Ethereum.Stop is now only called once, even if multiple interrupts
are sent. Interrupting ten times in a row forces a panic.
Fixes #869
Fixes #1359
2015-07-06 15:06:11 +02:00
Jeffrey Wilcke
9bb575be7d
Merge pull request #1283 from ethersphere/frontier/accounts
...
Account management improvements
2015-07-04 03:40:23 -07:00
Jeffrey Wilcke
4dfcd6012b
Merge pull request #1392 from bas-vk/ipcpipelining
...
Several bugfixes to IPC channel
2015-07-03 08:26:57 -07:00
Jeffrey Wilcke
29e2fb38f8
core, miner: miner header validation, transaction & receipt writing
...
* Miners do now verify their own header, not their state.
* Changed old putTx and putReceipts to be exported
* Moved writing of transactions and receipts out of the block processer
in to the chain manager. Closes #1386
* Miner post ChainHeadEvent & ChainEvent. Closes #1388
2015-07-03 13:56:50 +02:00
zelig
fc2e33c594
unlock multiple passes and obsolete primary
...
* multiple passwords allowed in password file
* split on "\n", sideeffect: chop trailing slashes. fixes common mistake <(echo 'pass')
* remove accounts.Primary method
* do not fall back to primary account for mining
2015-07-02 23:28:11 +01:00
Bas van Kervel
56ed408436
ipcpath issue fix
2015-07-02 17:25:11 +02:00
Péter Szilágyi
393d675690
cmd/geth, cmd/utils, eth: advertise both eth/60 and eth/61
2015-06-30 19:00:00 +03:00
Péter Szilágyi
01fe972113
cmd, core, eth, metrics, p2p: require enabling metrics
2015-06-30 00:51:46 +02:00
Bas van Kervel
2e0b56a72b
added RPC start/stop support
2015-06-22 12:47:32 +02:00
Bas van Kervel
f87501b1c5
added batch support to console and attach actions
2015-06-22 09:17:09 +02:00
Bas van Kervel
a4a4e9fcf8
removed old rpc structure and added new inproc api client
2015-06-22 09:17:09 +02:00
Bas van Kervel
5c25403b13
refactored old rpc structure to new
2015-06-22 08:54:21 +02:00
zsfelfoldi
1e3f4877c0
Changed miner and gpo min gas price to 1 szabo
2015-06-15 16:48:59 +02:00
zsfelfoldi
3f94d09c1f
fixed saving receipts
2015-06-15 15:55:38 +02:00
Bas van Kervel
55a796b7c3
removed obsolete console flag
2015-06-12 09:42:57 +02:00
Bas van Kervel
359e6414e5
fixed windows ipc path issue
2015-06-12 09:32:37 +02:00
Bas van Kervel
22080e1fdd
ipc socket always used default path
2015-06-11 20:35:19 +02:00
Bas van Kervel
2a0d888326
added API/IPC commandline flags
2015-06-11 14:01:39 +02:00
Jeffrey Wilcke
0f1cdfa53a
Merge pull request #1193 from tgerring/hotbackup
...
Improve export command
2015-06-08 16:32:38 -07:00
obscuren
6244b10a8f
core: settable genesis nonce
...
You can set the nonce of the block with `--genesisnonce`. When the
genesis nonce changes and it doesn't match with the first block in your
database it will fail. A new `datadir` must be given if the nonce of the
genesis block changes.
2015-06-08 18:33:43 +02:00
Taylor Gerring
d65b64c884
Allow export command to take first and last args
2015-06-06 00:02:32 -04:00
Felix Lange
5197aed7db
cmd/utils, eth: core.NewBlockProcessor no longer needs TxPool
2015-06-03 22:43:23 +02:00
Felix Lange
e1fe75e3b6
cmd/utils: use constant for import batch size
2015-05-28 01:20:58 +02:00
Felix Lange
a8bc2181c9
cmd/utils: skip batches with known blocks during import
...
This makes block importing restartable.
2015-05-28 01:20:58 +02:00
Felix Lange
67effb94b6
cmd/geth, cmd/utils: make chain importing interruptible
...
Interrupting import with Ctrl-C could cause database corruption
because the signal wasn't handled. utils.ImportChain now checks
for a queued interrupt on every batch.
2015-05-28 01:09:26 +02:00
Felix Lange
705beb4c25
cmd/utils: print errors only once if stdout and stderr are the same file
2015-05-28 01:09:26 +02:00
Felix Lange
74706a0f02
cmd/geth, cmd/utils: rename utils.Get* -> utils.Make*
...
The renaming should make it clearer that these functions create a new
instance for every call. @obscuren suggested this renaming a while ago.
2015-05-28 01:09:26 +02:00
Felix Lange
3b9808f23c
cmd/geth, cmd/utils: don't use Ethereum for import, export and upgradedb
...
The blockchain commands don't need the full stack. With this change,
p2p, miner, downloader, etc are no longer started for blockchain
operations.
2015-05-28 01:09:26 +02:00
Péter Szilágyi
e1a0ee8fc5
cmd/geth, cmd/utils, eth, p2p: pass and honor a no discovery flag
2015-05-26 19:07:24 +03:00
zelig
bed80133e0
automatic DAG pregeneration for smooth epoch transitions
...
- backend: AutoDAG bool flag passed from cli/eth.Config to ethereum, autoDAG loop started if true
- backend: autoDAG loop start/stop, remove previous DAG
- cli: AutoDAG bool flag, off by default, but automatically ON if mining
- admin jsre: add startAutoDAG stopAutoDAG and makeDAG in miner section
- switch on/off DAG autogeneration when miner started/stopped on console
2015-05-21 15:53:42 +01:00
zelig
22b694ee1e
solc now in ethereum, fixes solc path setting; setSolc() didnt work
2015-05-20 02:47:13 +01:00
Jeffrey Wilcke
bd0c0a633b
Merge pull request #1022 from obscuren/parallel_nonce_checks
...
Parallelise nonce checks
2015-05-18 11:13:53 -07:00
Taylor Gerring
0864f1fc8e
Remove unused confirm() method
2015-05-18 12:25:33 -05:00
Taylor Gerring
f14feea436
Refactor user prompts into utils
2015-05-18 12:24:30 -05:00
obscuren
c67424ecc8
core: parallelise nonce checking when processing blocks
...
ChainManager now uses a parallel approach to block processing where all
nonces are checked seperatly from the block processing process. This
speeds up the process by about 3 times on my i7
2015-05-18 13:59:22 +02:00
obscuren
7ea76fcf99
core, cmd/geth, cmd/mist: cleanup. bump version 0.9.21
2015-05-16 00:26:36 +02:00
Felix Lange
5f706cd7f5
cmd/utils: print messages from package log through glog
...
Some of the dependencies use package log. This change ensures that the
log output looks uniform and respects glog flags.
2015-05-14 12:56:37 +02:00
Gustav Simonsson
e389585f1f
Change default keystore dir
2015-05-12 18:33:04 +02:00
Bas van Kervel
95773b9673
removed redundant newlines in import block
2015-05-12 15:20:53 +02:00
Bas van Kervel
b79dd188d9
replaced several path.* with filepath.* which is platform independent
2015-05-12 14:24:11 +02:00
obscuren
cb1fa523e4
cmd/geth, cmd/mist, eth, flags: renamed loglevel to verbosity
2015-05-09 12:00:51 +02:00
Felix Lange
e45d9bb29d
cmd/utils: bump default maxpeers to 25
...
This should improve ethereum block propagation times since
we're not not broadcasting blocks to 100% of peers.
2015-05-08 16:09:55 +02:00
Jeffrey Wilcke
23454dcfcb
Merge pull request #840 from karalabe/throttled-dialing
...
p2p: throttled handshakes
2015-05-08 06:53:40 -07:00
Péter Szilágyi
4d5a719f25
cmd, eth, p2p: introduce pending peer cli arg, add tests
2015-05-07 15:30:56 +03:00
zelig
009b221692
solidity compiler and contract metadocs integration
...
* common/compiler: solidity compiler + tests
* rpc: eth_compilers, eth_compileSolidity + tests
* fix natspec test using keystore API, notice exp dynamically changes addr, cleanup
* resolver implements registrars and needs to create reg contract (temp)
* xeth: solidity compiler. expose getter Solc() and paths setter SetSolc(solcPath)
* ethereumApi: implement compiler related RPC calls using XEth - json struct tests
* admin: make use of XEth.SetSolc to allow runtime setting of compiler paths
* cli: command line flags solc to set custom solc bin path
* js admin api with new features debug and contractInfo modules
* wiki is the doc https://github.com/ethereum/go-ethereum/wiki/Contracts-and-Transactions
2015-05-07 12:58:21 +02:00
Gustav Simonsson
b1cc9cdc74
Integrate new ethash API and change geth makedag cmd
2015-05-05 08:24:15 +02:00
obscuren
735b029db9
core: return the index of the block that failed when inserting a chain
2015-04-29 14:00:24 +02:00
Jeffrey Wilcke
8d09f95bc7
Merge pull request #805 from obscuren/download_improvements
...
eth, eth/downloader: improve downloader and remove asynchronousness
2015-04-24 15:56:17 -07:00
obscuren
405720b218
xeth, core, cmd/utils: Transaction can not be over block gas limit
...
Transactions will be invalidated when the tx.gas_limit > block.gas_limit
2015-04-24 17:48:13 +02:00
zelig
c5e9a0a71c
cli: correct bootnodes flag usage help line
2015-04-24 12:46:53 +01:00
zelig
6512b23b98
cli: fatal error if rpc could not be started
2015-04-24 12:45:11 +01:00
zelig
7b2f25b578
cli: clean up flag descriptions, usage docs, account list uses primary and indexes, add help line to account subcnd usage
2015-04-24 12:45:11 +01:00
Jeffrey Wilcke
3d7c1b8194
Merge pull request #755 from karalabe/command-flags-cleanup
...
cmd/geth, cmd/utils: add cli flags for pprof and whisper
2015-04-20 09:17:04 -07:00
Péter Szilágyi
3b008723db
cmd/geth, cmd/utils: invert --pprof once more
2015-04-20 19:14:49 +03:00
Péter Szilágyi
c8e2b3710c
cmd/geth, cmd/utils: use pprof disable flag, start globally
2015-04-20 18:59:41 +03:00
Péter Szilágyi
8830403acf
cmd/geth, cmd/utils: add cli flags for pprof and whisper.
2015-04-20 18:45:37 +03:00
zsfelfoldi
bb793c829f
fixed incomplete merge
2015-04-19 20:57:49 +01:00
zsfelfoldi
c4b7d4d3f7
NatSpec cli option, resolver tests passing
2015-04-19 20:57:49 +01:00
obscuren
8f3a7e41de
Merge branch 'rlp-size-validation' of https://github.com/fjl/go-ethereum into fjl-rlp-size-validation
...
Conflicts:
eth/protocol.go
2015-04-19 17:07:40 +02:00
obscuren
03b4cf74a2
geth: added identity flag which allows to set a custom node name
2015-04-18 23:53:30 +02:00
Felix Lange
56a48101dc
cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limit
2015-04-17 14:45:09 +02:00
Bas van Kervel
49a513bdeb
Added blockchain DB versioning support, closes #650
2015-04-13 10:13:52 +02:00
Jeffrey Wilcke
4de1e1609a
Merge pull request #682 from bas-vk/issue_567
...
bugfix as a result of PR 671
2015-04-09 23:42:17 +02:00
Bas van Kervel
dc2b9fd458
bugfix as a result of PR 671
2015-04-09 20:06:27 +02:00
Jeffrey Wilcke
79cc3cc98e
Merge pull request #671 from bas-vk/issue_567
...
Add path expansion support for command line arguments, closes 567
2015-04-09 11:31:04 +02:00
Bas van Kervel
6da5b2fc5f
reformat code with goimports
2015-04-09 10:26:26 +02:00
obscuren
6e2f78ebdd
Default log to stderr
2015-04-08 22:18:16 +02:00
Bas van Kervel
5304f43067
Add path expansion support for command line arguments, closes 567
2015-04-08 15:43:55 +02:00
obscuren
688d118c7e
Updated logging
2015-04-07 14:57:04 +02:00
obscuren
a0e44e3281
basic glog
2015-04-04 12:40:11 +02:00
obscuren
36452afd4e
glog wip
2015-04-03 17:09:11 +02:00
Taylor Gerring
04a7c4ae1e
Abstract http into rpc package
...
New RpcConfig object to pass growing config
2015-03-29 21:26:47 +02:00
Taylor Gerring
24fc1f073d
Add flag to control CORS header #394
...
* Disabled on CLI
* http://localhost on Mist
2015-03-29 21:21:14 +02:00
obscuren
eb102bf4bb
Etherbase => etherbase
2015-03-27 12:14:00 +01:00
Jeffrey Wilcke
0b4b2b81f9
Merge pull request #580 from ethersphere/frontier/cli-key
...
settable etherbase
2015-03-27 12:12:05 +01:00
Taylor Gerring
e29396b691
Use ExtraDB for storage. Fixes #577
2015-03-27 09:36:18 +01:00
zelig
b375bbee5f
settable etherbase
...
- etherbase flag for block reward destination
- coinbase => etherbase
- CLI- eth Config -> eth, xeth -> RPC / Miner
- use primary instead of coinbase as the unlock magic wildcard
- accounts: firstAddr/Coinbase -> Primary
2015-03-26 21:52:22 +00:00
zelig
7577d12614
max paranoia mode to UNsupport unencrypted keys entirely
...
- remove account export functionality from CLI
- remove accountExport method,
- remove unencrypted-keys flag from everywhere
- improve documentation
2015-03-26 19:00:18 +00:00
zelig
34d5a6c156
cli: help formatting
2015-03-26 19:00:18 +00:00
zelig
c4ea921876
import/export accounts
...
- cli: add passwordfile flag
- cli: change unlock flag only takes account
- cli: with unlock you are prompted for password or use passfile with password flag
- cli: unlockAccount used in normal client start (run) and accountExport
- cli: getPassword used in accountCreate and accountImport
- accounts: Manager.Import, Manager.Export
- crypto: SaveECDSA (to complement LoadECDSA) to save to file
- crypto: NewKeyFromECDSA added (used in accountImport and New = generated constructor)
2015-03-26 19:00:18 +00:00
obscuren
88b9bc40d7
Godep issue?
2015-03-26 01:03:03 +01:00
Gustav Simonsson
33c5186fd0
In blocktest cmd, disable network and add RPC flag
2015-03-23 16:32:20 +01:00
zelig
78cff9e3a4
independent flag for json structured logging
...
- logjson flag remove logformat flag
- passed to eth Config
- logsystem not a field of Ethereum
- LogSystem does not need to expose GetLogLevel/SetLogLevel
- message struct just implements more generic LogMsg interface
- LogMsg is a fmt.Stringer with Level()
- jsonMsg ([]byte) implements LogMsg
- remove "raw" systems
- move level logic inside StdLogSystem
- logsystems only print their kind of msg: jsonLogSystem prints jsonMsg, StdLogSystem prints stdMsg
2015-03-22 02:16:54 +00:00
obscuren
f0bb136099
Merge branch 'develop' into conversion
2015-03-18 18:42:01 +01:00
Felix Lange
064279c0ec
cmd/ethereum, cmd/utils: partial fix for chain import
2015-03-18 14:04:44 +01:00
Felix Lange
d15f90645d
Merge remote-tracking branch 'ethereum/conversion' into conversion
2015-03-18 13:39:01 +01:00
Felix Lange
b5b83db450
core: use package rlp to encode blocks
...
This also changes the chain export format so there is no
enclosing list around the blocks, which enables streaming export.
2015-03-18 13:36:48 +01:00
zelig
b6aa88c099
private network support
...
- protocolversion, networkid global int flags to cli and mist
- fix bug with protocolversion check using wrong db
- log protocolversion & networkid in backend
2015-03-18 14:44:58 +07:00
zelig
5e7702fd05
Merge remote-tracking branch 'upstream/develop' into frontier/js
...
Conflicts:
cmd/ethereum/js.go
javascript/types.go
2015-03-16 22:46:29 +07:00
obscuren
b523441361
Moved ethutil => common
2015-03-16 11:27:38 +01:00
zelig
7279a485c2
CLI:
...
- js subcommand for vm
- console for Frontier console interactive REPL
- jspath in cli
- integrate jeth apiBindings
2015-03-15 13:31:40 +07:00
obscuren
d9966d6158
merge
2015-03-14 23:37:21 +01:00