aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/js_test.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-301-500/+0
|
* all: fix go vet warningsFelix Lange2016-04-151-1/+4
|
* accounts: streamline APIFelix Lange2016-04-121-12/+1
| | | | | | - Manager.Accounts no longer returns an error. - Manager methods take Account instead of common.Address. - All uses of Account with unkeyed fields are converted.
* accounts, crypto: move keystore to package accountsFelix Lange2016-04-121-17/+9
| | | | | | | | | | 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.
* cmd/geth, cmd/utils: improve input handlingFelix Lange2016-04-121-1/+1
| | | | | | | | | | | | | | | | | | | 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.
* core: added basic chain configurationJeffrey Wilcke2016-04-011-0/+1
| | | | | | | | | 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.
* all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()Ricardo Catalinas Jiménez2016-02-221-1/+1
| | | | As we aren't really using the standarized SHA-3
* cmd, node, rpc: readd inproc RPC client, expose via nodePéter Szilágyi2016-02-091-4/+2
|
* cmd, common, node, rpc: rework naming convention to canonical onePéter Szilágyi2016-02-091-2/+2
|
* cmd, node, rpc: move websockets into node, break singletonPéter Szilágyi2016-02-051-26/+26
|
* rpc: migrated the RPC insterface to a new reflection based RPC layerBas van Kervel2016-01-261-49/+52
|
* rpc: new RPC implementation with pub/sub supportBas van Kervel2015-12-141-1/+1
|
* cmd, eth, node, rpc, xeth: use single-instance servicesPéter Szilágyi2015-11-271-7/+7
|
* cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-271-65/+63
|
* rpc api: eth_getNatSpeczelig2015-10-271-5/+5
| | | | | | | | * 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
* Merge pull request #1869 from Gustav-Simonsson/gpu_minerJeffrey Wilcke2015-10-161-2/+1
|\ | | | | all: Add GPU mining, disabled by default
| * all: Add GPU mining, disabled by defaultGustav Simonsson2015-10-071-2/+1
| |
* | cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-041-1/+1
|/ | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
* core, core/types: readd transactions after chain re-orgJeffrey Wilcke2015-09-221-1/+1
| | | | | | | | | | | | | | 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
* all: move common.Database to package ethdbFelix Lange2015-09-151-1/+1
|
* etherbase defaults to first account even if created during the sessionzelig2015-07-271-1/+2
|
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-2/+2
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* cmd, core, eth, common: genesis preparationJeffrey Wilcke2015-07-101-2/+4
| | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block.
* all: update license informationFelix Lange2015-07-071-0/+16
|
* cmd/geth: fixed testJeffrey Wilcke2015-07-071-1/+1
|
* fix/skip tests, adapt registrar to no contract addresszelig2015-07-071-3/+9
| | | | registry initialisers now return the txhash which caller can use to retrieve receipt
* fix natspec testzelig2015-07-071-1/+1
| | | | | | * registar url string retrieval chop leading zeros now * rewrite test using test mining * remove temporary applyTxs from xeth
* fix js arguments and TestContract passeszelig2015-07-071-7/+10
|
* rename js methods in js_test for new console APIzelig2015-07-071-7/+7
| | | | + rebase fixes
* Registrar and contractInfo handlingzelig2015-07-071-1/+1
| | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* Registrar and contractInfo handlingzelig2015-07-071-55/+161
| | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* fix account orderingzelig2015-07-031-1/+1
| | | | | | | | * chronological order of creation * new naming scheme keystore/UTC--<created_at UTC ISO8601>-<address hex> * KeyStore2 -> KeyStore * backward compatibility * refactor keyStore methods
* accounts order by keyfile ctimezelig2015-07-031-3/+3
|
* rpc/js coinbase returns null if no etherbase setzelig2015-07-031-3/+1
|
* unlock multiple passes and obsolete primaryzelig2015-07-031-1/+1
| | | | | | | * 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
* added RPC start/stop supportBas van Kervel2015-06-221-1/+1
|
* fixed unittestsBas van Kervel2015-06-221-7/+10
|
* fixed unittest build problemBas van Kervel2015-06-111-1/+1
|
* core: settable genesis nonceobscuren2015-06-091-0/+3
| | | | | | | 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.
* skipped failing natspec testsobscuren2015-06-041-1/+1
|
* cmd/geth, common/natspec: updating tests (still failing?)obscuren2015-06-041-1/+1
|
* cmd/geth: fix js console test for p2p server updatePéter Szilágyi2015-05-271-1/+3
|
* fix eth.sign. now implemented in admin jsre until web3.js has it .zelig2015-05-201-1/+1
|
* multiple contract source for solidity compiler: returns contract array if ↵zelig2015-05-201-3/+3
| | | | multiple contracts. fixes #1023
* solc now in ethereum, fixes solc path setting; setSolc() didnt workzelig2015-05-201-1/+2
|
* fix solc tests unskipzelig2015-05-201-14/+19
|
* core: chain manager no longer exports genesis blockobscuren2015-05-191-0/+2
|
* cmd/geth: use plain keystore for JS testsFelix Lange2015-05-141-1/+1
| | | | This reduces the time it takes to run the tests back to 3 seconds.
* Change default keystore dirGustav Simonsson2015-05-131-1/+1
|
* Fix address type in js testGustav Simonsson2015-05-121-1/+1
|
* Merge pull request #933 from bas-vk/issue928Jeffrey Wilcke2015-05-121-3/+2
|\ | | | | replaced path with platform aware filepath module
| * replaced several path.* with filepath.* which is platform independentBas van Kervel2015-05-121-3/+2
| |
* | sol: skipped source checking stepobscuren2015-05-121-0/+1
|/
* compiler, cli/js: fix solidity compiler tests failing when a different ↵zelig2015-05-121-2/+11
| | | | version of solc installed
* Signature test.Daniel A. Nagy2015-05-091-0/+28
|
* solidity compiler and contract metadocs integrationzelig2015-05-071-26/+215
| | | | | | | | | | | | | * 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
* cli/js console: if corsDomain is not given to startRpc, we fall back to ↵zelig2015-04-241-1/+1
| | | | value set on command line with `-corsDomain`
* js console: add cors domain optional argument to startRpczelig2015-04-241-7/+7
|
* cmd/geth: improve the JS testsFelix Lange2015-04-221-187/+68
| | | | | These changes ensure that the JS tests run without networking and fixes the block chain export and its associated test.
* geth: fixed failing cli testsobscuren2015-04-151-2/+2
|
* renamed ethereum => gethobscuren2015-03-271-0/+262