aboutsummaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* cmd/utils, crypto: add --lightkdf flag for lighter KDFDrake Burroughs2015-10-292-2/+2
|
* rpc api: eth_getNatSpeczelig2015-10-275-80/+52
| | | | | | | | * 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
* console:zelig2015-10-224-71/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lines with leading space are ommitted from history * exit processed even with whitespace around * all whitespace lines (not only empty ones) are ignored add 7 missing commands to admin api autocomplete registrar: methods now return proper error if reg addresses are not set. fixes #1457 rpc/console: fix personal.newAccount() regression. Now all comms accept interactive password registrar: add registrar tests for errors crypto: catch AES decryption error on presale wallet import + fix error msg format. fixes #1580 CLI: improve error message when starting a second instance of geth. fixes #1564 cli/accounts: unlock multiple accounts. fixes #1785 * make unlocking multiple accounts work with inline <() fd * passwdfile now correctly read only once * improve logs * fix CLI help text for unlocking fix regression with docRoot / admin API * docRoot/jspath passed to rpc/api ParseApis, which passes onto adminApi * docRoot field for JS console in order to pass when RPC is (re)started * improve flag desc for jspath common/docserver: catch http errors from response fix rpc/api tests common/natspec: fix end to end test (skipped because takes 8s) registrar: fix major regression: * deploy registrars on frontier * register HashsReg and UrlHint in GlobalRegistrar. * set all 3 contract addresses in code * zero out addresses first in tests
* Merge pull request #1869 from Gustav-Simonsson/gpu_minerJeffrey Wilcke2015-10-161-1/+1
|\ | | | | all: Add GPU mining, disabled by default
| * all: Add GPU mining, disabled by defaultGustav Simonsson2015-10-071-1/+1
| |
* | common, crypto: add ICAP functionsGustav Simonsson2015-10-133-0/+284
|/
* common: fix #1818, secondary datadir paths to fall back toPéter Szilágyi2015-10-011-6/+16
|
* 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
* Merge pull request #1793 from jeffallen/typoFelix Lange2015-09-181-18/+19
|\ | | | | common: Update README.md for the current package name
| * common: Update README.md for the current package nameJeff R. Allen2015-09-111-18/+19
| |
* | Merge pull request #1801 from fjl/ethdbJeffrey Wilcke2015-09-162-27/+1
|\ \ | | | | | | all: move common.Database to ethdb and add NewBatch
| * | all: move common.Database to package ethdbFelix Lange2015-09-152-27/+1
| |/
* | new solc api:zelig2015-09-152-14/+14
| | | | | | | | | | | | * use legacy version matcher * optimise just a boolean flag * skipf for messages in tests
* | Solidity Compiler - solc new APIzelig2015-09-122-23/+49
|/ | | | | | | | | | * adapt to new compiler versioning * use compiler version as language version * implement new solc API for versions >= 0.1.[2-9][0-9]* fixes #1770 * add optimize=1 to options * backward compatibility (for now) for <= 0.1.1, and old versions (0.[2-9][0-9]*.[0-9]+) * introduce compilerOptions to ContractInfo * clean up flair, include full version string to version line and ContractInfo
* common/compiler: fix #1598, expose solidity errorsPéter Szilágyi2015-08-261-58/+46
|
* common/compiler, common/docserver, jsre: fix tests on windowsFelix Lange2015-08-063-9/+16
|
* common: remove windows path functionsFelix Lange2015-08-063-64/+1
| | | | They were unused and their tests failed on Windows.
* common: remove config.goFelix Lange2015-07-241-83/+0
| | | | | The code in config.go is unused. The main reason for removing it is to get rid github.com/rakyll/goini in Godeps (it has no license).
* all: fix license headers one more timeFelix Lange2015-07-2438-38/+38
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-2338-152/+152
| | | | | 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-3/+5
| | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block.
* common/natspec: fixed testJeffrey Wilcke2015-07-071-1/+1
|
* all: goimports -wFelix Lange2015-07-071-1/+1
|
* all: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1
|
* all: update license informationFelix Lange2015-07-0738-0/+608
|
* fix/skip tests, adapt registrar to no contract addresszelig2015-07-073-21/+27
| | | | registry initialisers now return the txhash which caller can use to retrieve receipt
* fix natspec testzelig2015-07-074-52/+98
| | | | | | * 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-072-6/+267
|
* fix sleepBlocks, implement sleepzelig2015-07-071-1/+1
|
* Registrar and contractInfo handlingzelig2015-07-0712-354/+719
| | | | | | | | | | | | | | | | * 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
* Change keystore to version 3Gustav Simonsson2015-06-241-0/+37
| | | | | | | | | | | | * Change password protection crypto in keystore to version 3 * Update KeyStoreTests/basic_tests.json * Add support for PBKDF2 with HMAC-SHA256 * Change MAC and encryption key to avoid unnecessary hashing * Add tests for test vectors in new wiki page defining version 3 * Add tests for new keystore tests in ethereum/tests repo * Move JSON loading util to common for use in both tests and crypto packages * Add backwards compatibility with key store version 1
* core, ethdb, trie: validate database errorsobscuren2015-06-211-1/+1
|
* core/state, core/vm: reworked storage get / set to use common.Hashobscuren2015-06-171-0/+4
|
* core: reduce max allowed queued txs per addressobscuren2015-06-151-0/+11
| | | | | Transactions in the queue are now capped to a maximum of 200 transactions. This number is completely arbitrary.
* fixed windows ipc path issueBas van Kervel2015-06-121-0/+3
|
* added API/IPC commandline flagsBas van Kervel2015-06-111-0/+4
|
* skip sol on new compilerobscuren2015-06-091-2/+2
|
* skipped failing natspec testsobscuren2015-06-041-1/+1
|
* cmd/geth, common/natspec: updating tests (still failing?)obscuren2015-06-041-1/+1
|
* types: block json unmarshal method addedobscuren2015-06-041-4/+4
|
* common, ethdb: removed caching and LastTDobscuren2015-05-281-1/+0
|
* compile solidity contracts with std libraryMarek Kotewicz2015-05-251-0/+2
|
* multiple contract source for solidity compiler: returns contract array if ↵zelig2015-05-202-58/+65
| | | | multiple contracts. fixes #1023
* remove solc flairzelig2015-05-201-1/+2
|
* fix solc tests unskipzelig2015-05-202-14/+18
|
* xeth: set balance max balance to from in call. Closes #951obscuren2015-05-161-0/+1
|
* Change default keystore dirGustav Simonsson2015-05-131-2/+2
|
* Fix natspec test (again x2) typesGustav Simonsson2015-05-121-1/+2
|
* Fix natspec e2e test accounts type (again)Gustav Simonsson2015-05-121-1/+1
|
* Merge pull request #933 from bas-vk/issue928Jeffrey Wilcke2015-05-122-16/+14
|\ | | | | replaced path with platform aware filepath module
| * replaced several path.* with filepath.* which is platform independentBas van Kervel2015-05-122-16/+14
| |
* | sol: skipped source checking stepobscuren2015-05-121-3/+5
|/
* compiler, cli/js: fix solidity compiler tests failing when a different ↵zelig2015-05-122-3/+9
| | | | version of solc installed
* core, eth, miner: improved tx removal & fatal error on db sync errobscuren2015-05-112-20/+0
| | | | | | | | * core: Added GasPriceChange event * eth: When one of the DB flush methods error a fatal error log message is given. Hopefully this will prevent corrupted databases from occuring. * miner: remove transactions with low gas price. Closes #906, #903
* solidity compiler and contract metadocs integrationzelig2015-05-077-369/+641
| | | | | | | | | | | | | * 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
* Merge pull request #791 from fjl/discover-sha3-distanceJeffrey Wilcke2015-05-071-1/+14
|\ | | | | p2p/discover: sha3-based node distance
| * common: add Hash.GenerateFelix Lange2015-04-301-1/+14
| |
* | xeth, rpc: added nonce setting through RPC and xeth transactobscuren2015-05-071-2/+2
|/
* Remove path separator literalsTaylor Gerring2015-04-291-6/+7
|
* natspec: disabled natspec testobscuren2015-04-241-0/+1
|
* Moved leveldb update loop to eth/backendBas van Kervel2015-04-231-0/+1
| | | | | | change order of block insert and update LastBlock bugfix, wrong hash stored in blockDb
* natspec: fixed test to work with new queued transactionsobscuren2015-04-231-1/+1
|
* common: delete BinaryLengthFelix Lange2015-04-222-25/+0
| | | | | The test is failing the 32bit build and the function is not used anywhere.
* contract addresses include hex prefixzelig2015-04-204-37/+38
| | | | | | | | - simplify resolver and tests - added missing test for KeyToUrl - fix notice error message and its test with !%x(MISSING) - natspec test: insertTx modified - does not prepend 0x to contract address - disable networking in e2e test
* fix end to end test import cyclezelig2015-04-201-3/+1
|
* fixed resolver testzsfelfoldi2015-04-201-2/+6
|
* URLhint support for URLs longer than 32 byteszsfelfoldi2015-04-203-22/+70
|
* added missing source filezsfelfoldi2015-04-201-0/+36
|
* test account is no longer permanently in genesis block, only put there when ↵zsfelfoldi2015-04-201-4/+13
| | | | testing
* NatSpec contracts are now not in the genesis block but added by the testzsfelfoldi2015-04-202-20/+45
|
* utils linked to natspec notice eval, test notice now using utils.toHex()zsfelfoldi2015-04-203-8/+4048
|
* NatSpec cli option, resolver tests passingzsfelfoldi2015-04-202-8/+10
|
* default fallback NatSpec messageszsfelfoldi2015-04-202-14/+49
|
* natspec test bugfixzsfelfoldi2015-04-201-15/+12
|
* NatSpec passing end to end testzsfelfoldi2015-04-204-49/+196
|
* szsfelfoldi2015-04-203-51/+79
|
* NatSpec contracts in genesis block, end to end test (unfinished)zsfelfoldi2015-04-206-58/+174
|
* resolver testszelig2015-04-204-20/+81
| | | | | | - add resolver tests and fix resolver to pass - statereg constructor fixed - comments added to natspec plus docserver integration for natspec userdoc fetching
* reorg:zelig2015-04-205-116/+66
| | | | | - statereg methods move to natspec/resolver/docserver - fix failing test on invalid js input
* add docserver using net/http Transport/Roundtripzelig2015-04-202-0/+131
|
* NatSpec, URL register storage retrievalzsfelfoldi2015-04-203-27/+200
| | | | fixed 2/3 tests
* add common/resolver skeletonzelig2015-04-202-0/+62
|
* new natspeczelig2015-04-202-51/+186
| | | | | | | - constructor takes abidoc, userdoc - json parsing of userdoc - method found by abi data - notice found from method
* common: Added debug reporterobscuren2015-04-151-0/+20
| | | | | | | NOTE: For known, non-consensus, hard to reproduce bugs consider the following method `common.Report("extra", stuff, "you need logged")` will give you a stack trace and a friendly request to submit it as an issue on our issue tracker.
* Queued level db writes and batch writes. Closes #647obscuren2015-04-081-2/+0
|
* Detect non-valid strings for blockheightTaylor Gerring2015-04-021-0/+5
|
* Fix block size output #613Taylor Gerring2015-04-011-0/+4
|
* common: remove WriteFile and ReadAllFile (use ioutil instead)zelig2015-03-272-76/+1
|
* natspec: minor fix in testzelig2015-03-241-2/+2
|
* Merge pull request #547 from tgerring/commoncleanupJeffrey Wilcke2015-03-239-265/+250
|\ | | | | common/common.go cleanup
| * Remove common.goTaylor Gerring2015-03-221-12/+0
| |
| * Move Big* vars to big.goTaylor Gerring2015-03-222-14/+13
| |
| * Move MakeName to pathTaylor Gerring2015-03-222-8/+8
| |
| * Move OS-specific funcs to path.goTaylor Gerring2015-03-224-98/+91
| |
| * Move CurrencyToString to sizeTaylor Gerring2015-03-224-91/+95
| |
| * Move ToHex/FromHex into bytesTaylor Gerring2015-03-224-42/+43
| |
* | Merge pull request #536 from zsfelfoldi/developJeffrey Wilcke2015-03-231-1/+1
|\ \ | |/ |/| using robertkrimen/otto, godeps updated
| * using robertkrimen/otto, godeps updatedzsfelfoldi2015-03-201-1/+1
| |
* | Merge remote-tracking branch 'ethereum/conversion' into conversionFelix Lange2015-03-202-11/+4
|\ \
| * | copy over loopobscuren2015-03-201-9/+2
| | |
| * | Removed more castsobscuren2015-03-201-2/+2
| | |
* | | common: drop accessors for Value.ValFelix Lange2015-03-203-10/+2
| | | | | | | | | | | | I don't see why we would need two different accessors for a public field.
* | | common: drop unused kind field from ValueFelix Lange2015-03-201-5/+1
| | | | | | | | | | | | This makes Value 24 bytes smaller on 64bit systems.
* | | common: make Value encodable with package rlpFelix Lange2015-03-202-28/+55
|/ / | | | | | | | | Value.{Encode,Decode} are gone. It implements rlp.Encoder and rlp.Decoder instead, so Value can be decoded into directly.
* | mergeobscuren2015-03-191-0/+9
|\|
| * DRY up the use of toHex in the project and move it to commonMaran2015-03-161-0/+9
| |
* | prep template for fixed size hashesobscuren2015-03-181-0/+48
| |
* | Added Hex methodsobscuren2015-03-181-0/+2
| |
* | Fixed VM & Tests w/ conversionobscuren2015-03-171-0/+15
| |
* | Merge branch 'develop' into conversionobscuren2015-03-171-7/+2
|\| | | | | | | | | Conflicts: common/types.go
| * tmpobscuren2015-03-161-2/+2
| |
* | updated blockpoolobscuren2015-03-171-0/+3
| |
* | converted vmobscuren2015-03-171-18/+27
| |
* | conversion stateobscuren2015-03-171-3/+5
| |
* | Getters shouldn't need to be pointer receiverobscuren2015-03-161-8/+7
| |
* | compilable trie (tests fail)obscuren2015-03-161-5/+5
| |
* | Added functions to Hash & Addressobscuren2015-03-161-1/+37
| | | | | | | | | | * Set, SetString, SetBytes * StringTo*, BytesTo*
* | Added ToString methodsobscuren2015-03-161-3/+6
| |
* | new type + additional methodsobscuren2015-03-162-1/+37
|/
* Moved ethutil => commonobscuren2015-03-1630-0/+2972