Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: refactor genesis handling | Felix Lange | 2017-03-23 | 45 | -1267/+1371 |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit solves several issues concerning the genesis block: * Genesis/ChainConfig loading was handled by cmd/geth code. This left library users in the cold. They could specify a JSON-encoded string and overwrite the config, but didn't get any of the additional checks performed by geth. * Decoding and writing of genesis JSON was conflated in WriteGenesisBlock. This made it a lot harder to embed the genesis block into the forthcoming config file loader. This commit changes things so there is a single Genesis type that represents genesis blocks. All uses of Write*Genesis* are changed to use the new type instead. * If the chain config supplied by the user was incompatible with the current chain (i.e. the chain had already advanced beyond a scheduled fork), it got overwritten. This is not an issue in practice because previous forks have always had the highest total difficulty. It might matter in the future though. The new code reverts the local chain to the point of the fork when upgrading configuration. The change to genesis block data removes compression library dependencies from package core. | ||||
* | core/types: handle nil ChainId in NewEIP155Signer | Felix Lange | 2017-03-23 | 1 | -0/+3 |
| | | | | | | All uses of ChainConfig.ChainId eventually end up in NewEIP155Signer. This fixes the case where users forget to set the ChainId in their config. | ||||
* | core/state: expose CommitTo | Felix Lange | 2017-03-23 | 1 | -2/+3 |
| | |||||
* | common: add UnprefixedHash, UnprefixedAddress | Felix Lange | 2017-03-23 | 1 | -14/+30 |
| | |||||
* | common/hexutil: add UnmarshalFixedUnprefixedText | Felix Lange | 2017-03-23 | 2 | -5/+62 |
| | |||||
* | common/math: add HexOrDecimal64, HexOrDecimal256 | Felix Lange | 2017-03-23 | 4 | -12/+54 |
| | |||||
* | Merge pull request #3795 from fjl/pow-fix-test-mode | Péter Szilágyi | 2017-03-23 | 3 | -20/+25 |
|\ | | | | | pow: fix Search with ethash test mode | ||||
| * | pow: fix Search with ethash test mode | Felix Lange | 2017-03-18 | 3 | -20/+25 |
| | | | | | | | | | | | | | | | | | | | | | | The cache/dataset methods crashed with a nil pointer error if cachesinmem/dagsinmem were zero. Fix it by skipping the eviction logic if there are no caches/datasets. Search always used the regular dataset size regardless of test mode. Fix it by removing the redundant size parameter of hashimotoFull. Fixes #3784 | ||||
* | | Merge pull request #3809 from fjl/all-use-normal-context | Péter Szilágyi | 2017-03-23 | 76 | -517/+215 |
|\ \ | | | | | | | all: import "context" instead of "golang.org/x/net/context" | ||||
| * | | trie, whisper/whisperv5: use math/rand Read function | Felix Lange | 2017-03-23 | 5 | -54/+23 |
| | | | |||||
| * | | mobile: remove support for Go < 1.7 | Felix Lange | 2017-03-23 | 2 | -26/+5 |
| | | | |||||
| * | | all: import "context" instead of "golang.org/x/net/context" | Felix Lange | 2017-03-23 | 69 | -437/+187 |
|/ / | | | | | | | | | | | | | | | | | | | There is no need to depend on the old context package now that the minimum Go version is 1.7. The move to "context" eliminates our weird vendoring setup. Some vendored code still uses golang.org/x/net/context and it is now vendored in the normal way. This change triggered new vet checks around context.WithTimeout which didn't fire with golang.org/x/net/context. | ||||
* | | les: implement request distributor, fix blocking issues (#3660) | Felföldi Zsolt | 2017-03-23 | 19 | -322/+877 |
| | | | | | | | | | | * les: implement request distributor, fix blocking issues * core: moved header validation before chain mutex lock | ||||
* | | Merge pull request #3808 from fjl/build-go-1.7 | Péter Szilágyi | 2017-03-23 | 4 | -29/+6 |
|\ \ | | | | | | | build: require Go >= 1.7 | ||||
| * | | build: remove support for the GO_OPENCL environment variable | Felix Lange | 2017-03-22 | 1 | -4/+0 |
| | | | | | | | | | | | | We don't use the opencl build tag anymore. | ||||
| * | | build: require Go >= 1.7 | Felix Lange | 2017-03-22 | 4 | -25/+6 |
|/ / | | | | | | | | | | | | | We have decided to bump the requirement to Go 1.7 because it enables subtests and allows dropping backwards-compatibility code. This is in line with Go's support policy. Go 1.6 and earlier no longer receive security updates. | ||||
* | | core/vm: use uint64 instead of *big.Int in tracer (#3805) | Yohann Leon | 2017-03-22 | 6 | -21/+17 |
| | | |||||
* | | core, eth, les: support resuming fast sync on heavy rollback (#3743) | Péter Szilágyi | 2017-03-22 | 6 | -34/+69 |
| | | |||||
* | | Merge pull request #3756 from fjl/core-types-gencodec | Felix Lange | 2017-03-22 | 16 | -322/+554 |
|\ \ | | | | | | | core/types: use gencodec for JSON marshaling code | ||||
| * | | core/types: use gencodec for JSON marshaling code | Felix Lange | 2017-03-07 | 9 | -312/+510 |
| | | | |||||
| * | | rlp: add support for "-" struct tag | Felix Lange | 2017-03-07 | 4 | -7/+31 |
| | | | |||||
| * | | internal/jsre/deps: ensure that go generate produces no changes | Felix Lange | 2017-03-07 | 2 | -3/+4 |
| | | | |||||
| * | | Makefile: add devtools target | Felix Lange | 2017-03-07 | 1 | -0/+9 |
| | | | |||||
* | | | Merge pull request #3802 from karalabe/cocoapods-stable | Péter Szilágyi | 2017-03-20 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | travis: switch to cocoapods 1.2.0 stable | ||||
| * | | | travis: switch to cocoapods 1.2.0 stable | Péter Szilágyi | 2017-03-20 | 1 | -1/+1 |
|/ / / | |||||
* | | | Merge pull request #3800 from karalabe/ethstats-genesis-fixes | Péter Szilágyi | 2017-03-20 | 1 | -10/+28 |
|\ \ \ | | | | | | | | | ethstats: try both ws:// and wss:// if none specified | ||||
| * | | | ethstats: try both ws:// and wss:// if none specified | Péter Szilágyi | 2017-03-20 | 1 | -10/+28 |
| | | | | |||||
* | | | | swarm/network/kademlia: set kademlia log output to debug instead of warn (#3787) | holisticode | 2017-03-18 | 1 | -1/+1 |
| | | | | |||||
* | | | | accounts/abi/bind: allow client to specify sender address for call (#3782) | bas-vk | 2017-03-16 | 2 | -2/+42 |
| | | | | |||||
* | | | | rpc: add support for extended headers in CORS requests (#3783) | Micah Zoltu | 2017-03-16 | 2 | -0/+2 |
| |_|/ |/| | | | | | | | | Fixes #3762. Details about parameter: https://github.com/rs/cors/blob/a62a804a8a009876ca59105f7899938a1349f4b3/cors.go#L50-L54 | ||||
* | | | internal/ethapi: drop eth_compile (#3740) | Péter Szilágyi | 2017-03-16 | 2 | -85/+1 |
|/ / | |||||
* | | Merge pull request #3779 from zsfelfoldi/cht-update | Péter Szilágyi | 2017-03-14 | 1 | -23/+2 |
|\ \ | | | | | | | light: added new CHT | ||||
| * | | light: added new CHT | Zsolt Felfoldi | 2017-03-14 | 1 | -23/+2 |
| |/ | |||||
* | | pow: make data dumps backwards compatible, fix DAG end | Péter Szilágyi | 2017-03-09 | 2 | -21/+32 |
| | | |||||
* | | crypto, pow, vendor: hash optimizations, mmap ethash | Péter Szilágyi | 2017-03-09 | 12 | -203/+772 |
| | | |||||
* | | all: finish integrating Go ethash, delete C++ vendor | Péter Szilágyi | 2017-03-09 | 20 | -800/+230 |
| | | |||||
* | | pow: only support prime calculations on Go 1.8 and above | Péter Szilágyi | 2017-03-09 | 6 | -63/+157 |
| | | |||||
* | | cmd, eth, les, node, pow: disk caching and progress reports | Péter Szilágyi | 2017-03-09 | 8 | -55/+216 |
| | | |||||
* | | all: swap out the C++ ethash to the pure Go one (mining todo) | Péter Szilágyi | 2017-03-09 | 31 | -1145/+1337 |
| | | |||||
* | | crypto, pow: add pure Go implementation of ethash | Péter Szilágyi | 2017-03-09 | 6 | -2/+1929 |
| | | |||||
* | | build: add bootnode to Ubuntu PPAs too (#3766) | Péter Szilágyi | 2017-03-09 | 1 | -0/+4 |
| | | |||||
* | | * cmd/geth: add --nocompaction flag + multiple import files | Martin Holst Swende | 2017-03-08 | 3 | -6/+27 |
| | | | | | | | | | | | | | | | | | | | | * main,import: Add --nocompaction flag + multiple import files * geth/import: documentation * import: Added more info to err message * fix :P | ||||
* | | Merge pull request #3755 from ligi/mobile_fix_typo | Péter Szilágyi | 2017-03-07 | 1 | -1/+1 |
|\ \ | |/ |/| | mobile: Fix typo ( Ethereun -> Ethereum ) | ||||
| * | mobile: Fix typo ( Ethereun -> Ethereum ) | ligi | 2017-03-07 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #3739 from karalabe/logger-updates-4 | Péter Szilágyi | 2017-03-04 | 22 | -341/+285 |
|\ | | | | | all: update light logs (and a few others) to the new model | ||||
| * | all: update light logs (and a few others) to the new model | Péter Szilágyi | 2017-03-03 | 22 | -341/+285 |
| | | |||||
* | | Merge pull request #3738 from karalabe/impossible-reorg-warning | Péter Szilágyi | 2017-03-03 | 1 | -6/+9 |
|\ \ | | | | | | | core: reorg logs crashed, add a check for corner cases | ||||
| * | | core: reorg logs crashed, add a check for corner cases | Péter Szilágyi | 2017-03-03 | 1 | -6/+9 |
| |/ | |||||
* | | Merge pull request #3741 from karalabe/fix-makefile-xgo | Péter Szilágyi | 2017-03-03 | 1 | -1/+4 |
|\ \ | |/ |/| | build: fix xgo argument order when building from make | ||||
| * | build: fix xgo argument order when building from make | Péter Szilágyi | 2017-03-03 | 1 | -1/+4 |
|/ | |||||
* | README: fix typo | Aaron Hnatiw | 2017-03-03 | 1 | -1/+1 |
| | |||||
* | Merge pull request #3735 from karalabe/bundle-bootnode | Péter Szilágyi | 2017-03-02 | 1 | -0/+1 |
|\ | | | | | build: bundle the bootnode too into alltools | ||||
| * | build: bundle the bootnode too into alltools | Péter Szilágyi | 2017-03-02 | 1 | -0/+1 |
| | | |||||
* | | Merge pull request #3727 from karalabe/travis-mips | Péter Szilágyi | 2017-03-02 | 3 | -23/+78 |
|\ \ | |/ |/| | travis: support building mips32 and mips64 too | ||||
| * | travis: support building mips32 and mips64 too | Péter Szilágyi | 2017-03-02 | 3 | -23/+78 |
| | | |||||
* | | Merge pull request #3722 from fjl/hexutil-text-unmarshal | Péter Szilágyi | 2017-03-02 | 9 | -114/+275 |
|\ \ | | | | | | | common/hexutil: implement TextMarshaler, TextUnmarshaler | ||||
| * | | common/hexutil: ensure negative big.Int is encoded sensibly | Felix Lange | 2017-03-02 | 3 | -16/+5 |
| | | | | | | | | | | | | Restricting encoding is silly. | ||||
| * | | common/hexutil: implement TextMarshaler, TextUnmarshaler | Felix Lange | 2017-03-02 | 8 | -96/+238 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes the wrapper types more generally applicable. encoding.TextMarshaler is supported by most codec implementations (e.g. for yaml). The tests now ensure that package json actually recognizes the custom marshaler implementation irrespective of how it is implemented. The Uint type has new tests, too. These are tricky because uint size depends on the CPU word size. Turns out that there was one incorrect case where decoding returned ErrUint64Range instead of ErrUintRange. | ||||
| * | | common/hexutil: don't leak encoding/hex errors in Decode | Felix Lange | 2017-03-02 | 2 | -6/+9 |
| | | | | | | | | | | | | | | | All other functions return errors from package hexutil, ensure that Decode does too. | ||||
| * | | common/hexutil: reject big integer inputs > 256 bits | Felix Lange | 2017-03-02 | 4 | -3/+30 |
| | | | | | | | | | | | | This follows the change to common/math big integer parsing in PR #3699. | ||||
* | | | Logger updates 3 (#3730) | Péter Szilágyi | 2017-03-02 | 22 | -292/+256 |
| | | | | | | | | | | | | | | | | | | | | | | | | * accounts, cmd, eth, ethdb: port logs over to new system * ethdb: drop concept of cache distribution between dbs * eth: fix some log nitpicks to make them nicer | ||||
* | | | Merge pull request #3728 from obscuren/format-trace | Péter Szilágyi | 2017-03-02 | 3 | -58/+69 |
|\ \ \ | |/ / |/| | | core/evm, core/vm: improved evm trace output | ||||
| * | | cmd/evm: removed -sysstat and moved content to -debug flag | Jeffrey Wilcke | 2017-03-01 | 2 | -17/+21 |
| | | | | | | | | | | | | | | | | | | Added the ability to directly compile and run ethereum assembly using the evm utility: `evm run <file>`. This is equivalant to `evm compile <file> | evm run`. | ||||
| * | | core/evm, core/vm: improved evm trace output | Jeffrey Wilcke | 2017-03-01 | 2 | -42/+49 |
| |/ | | | | | | | | | | | | | | | * Improved the standard evm tracer output and renamed it to WriteTrace which now takes an io.Writer to write the logs to. * Added WriteLogs which writes logs to the given writer in a readable format. * evm utility now also prints logs generated during the execution. | ||||
* / | cmd/disasm, cmd/evm: integrate disasm tool into evm tool. (#3729) | Valentin Wüstholz | 2017-03-01 | 2 | -12/+24 |
|/ | |||||
* | cmd/evm, core/asm: add EVM assembler (#3686) | Jeffrey Wilcke | 2017-03-01 | 8 | -133/+852 |
| | | | | | The evm compile command implements a simple assembly language that compiles to EVM bytecode. | ||||
* | cmd/utils, core, params: fork all teh things for dev mode (#3697) | Jeffrey Wilcke | 2017-03-01 | 3 | -0/+15 |
| | |||||
* | Merge pull request #3725 from karalabe/kill-it-with-fire | Péter Szilágyi | 2017-03-01 | 3 | -189/+33 |
|\ | | | | | errs: kill it with fire | ||||
| * | errs: kill it with fire | Péter Szilágyi | 2017-03-01 | 3 | -189/+33 |
|/ | |||||
* | Merge pull request #3723 from karalabe/logger-updates-2 | Péter Szilágyi | 2017-02-28 | 21 | -262/+230 |
|\ | | | | | Logger updates | ||||
| * | core/state: drop most of a logs (useless at this volume) | Péter Szilágyi | 2017-02-28 | 2 | -17/+2 |
| | | |||||
| * | core, log: track field length and pad to align | Péter Szilágyi | 2017-02-28 | 3 | -10/+32 |
| | | |||||
| * | all: next batch of log polishes to contextual versions | Péter Szilágyi | 2017-02-28 | 18 | -242/+203 |
| | | |||||
* | | all: unify big.Int zero checks, use common/math in more places (#3716) | Felix Lange | 2017-02-28 | 30 | -114/+104 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common/math: optimize PaddedBigBytes, use it more name old time/op new time/op delta PaddedBigBytes-8 71.1ns ± 5% 46.1ns ± 1% -35.15% (p=0.000 n=20+19) name old alloc/op new alloc/op delta PaddedBigBytes-8 48.0B ± 0% 32.0B ± 0% -33.33% (p=0.000 n=20+20) * all: unify big.Int zero checks Various checks were in use. This commit replaces them all with Int.Sign, which is cheaper and less code. eg templates: func before(x *big.Int) bool { return x.BitLen() == 0 } func after(x *big.Int) bool { return x.Sign() == 0 } func before(x *big.Int) bool { return x.BitLen() > 0 } func after(x *big.Int) bool { return x.Sign() != 0 } func before(x *big.Int) int { return x.Cmp(common.Big0) } func after(x *big.Int) int { return x.Sign() } * common/math, crypto/secp256k1: make ReadBits public in package math | ||||
* | Merge pull request #3721 from karalabe/drop-legacy-db-updates | Péter Szilágyi | 2017-02-28 | 3 | -80/+0 |
|\ | | | | | core, eth: drop database block splitting upgrader | ||||
| * | core, eth: drop database block splitting upgrader | Péter Szilágyi | 2017-02-28 | 3 | -80/+0 |
|/ | |||||
* | params: updated bootnodes (#3720) | Jamie Pitts | 2017-02-28 | 1 | -5/+8 |
| | | | | | | * Updated the list of go bootnodes: replaced BR with a new one, added US-WEST and AU. * Updated bootnodes, minor go formatting change. | ||||
* | Merge pull request #3709 from fjl/p2p-context-log | Péter Szilágyi | 2017-02-28 | 14 | -154/+174 |
|\ | | | | | p2p, p2p/discover, p2p/nat: rework logging using context keys | ||||
| * | p2p, p2p/discover, p2p/nat: rework logging using context keys | Felix Lange | 2017-02-28 | 11 | -151/+171 |
| | | |||||
| * | eth, les: shorten genesis block mismatch error message | Felix Lange | 2017-02-28 | 3 | -3/+3 |
| | | |||||
* | | Merge pull request #3718 from karalabe/terminal-format-hash | Péter Szilágyi | 2017-02-28 | 4 | -34/+61 |
|\ \ | |/ |/| | common, eth/downloader, log: support terminal log formatting | ||||
| * | common, eth/downloader, log: support terminal log formatting | Péter Szilágyi | 2017-02-28 | 4 | -34/+61 |
|/ | |||||
* | Merge pull request #3717 from tranvictor/master | Péter Szilágyi | 2017-02-28 | 1 | -1/+1 |
|\ | | | | | internal/ethapi: return logsBloom for pending block | ||||
| * | internal/ethapi: fixes #2648, returns logsBloom for pending block | tranvictor | 2017-02-27 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #3708 from fjl/log-letter | Péter Szilágyi | 2017-02-28 | 13 | -45/+64 |
|\ \ | |/ |/| | log: fix annoyances | ||||
| * | all: disable log message colors outside of geth | Felix Lange | 2017-02-27 | 11 | -27/+38 |
| | | | | | | | | Also tweak behaviour so colors are only enabled when stderr is a terminal. | ||||
| * | log: disable logs by default | Felix Lange | 2017-02-27 | 1 | -14/+2 |
| | | |||||
| * | log: log full level names instead of mispelled "EROR", "DBUG" | Felix Lange | 2017-02-27 | 2 | -4/+24 |
|/ | |||||
* | Merge pull request #3711 from karalabe/update-downloader-logs | Péter Szilágyi | 2017-02-27 | 8 | -135/+153 |
|\ | | | | | eth/downloader: port over old logs from glog to log15 | ||||
| * | eth/downloader: review fixes | Péter Szilágyi | 2017-02-27 | 2 | -7/+13 |
| | | |||||
| * | accounts, eth/downloader: use "err" instead of "error" in logs | Péter Szilágyi | 2017-02-27 | 5 | -23/+23 |
| | | |||||
| * | eth/downloader: port over old logs from glog to log15 | Péter Szilágyi | 2017-02-27 | 4 | -125/+137 |
| | | |||||
* | | Merge pull request #3715 from karalabe/update-hid-library | Péter Szilágyi | 2017-02-27 | 6 | -14/+49 |
|\ \ | | | | | | | vendor: update HID library for glibc < v2.17 build | ||||
| * | | vendor: update HID library for glibc < v2.17 build | Péter Szilágyi | 2017-02-27 | 6 | -14/+49 |
| |/ | |||||
* / | core, core/vm, cmd/disasm: unify procedures for disassembling evm code (#3530) | Valentin Wüstholz | 2017-02-27 | 6 | -185/+218 |
|/ | |||||
* | common: move big integer math to common/math (#3699) | Felix Lange | 2017-02-27 | 54 | -1569/+821 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: remove CurrencyToString Move denomination values to params instead. * common: delete dead code * common: move big integer operations to common/math This commit consolidates all big integer operations into common/math and adds tests and documentation. There should be no change in semantics for BigPow, BigMin, BigMax, S256, U256, Exp and their behaviour is now locked in by tests. The BigD, BytesToBig and Bytes2Big functions don't provide additional value, all uses are replaced by new(big.Int).SetBytes(). BigToBytes is now called PaddedBigBytes, its minimum output size parameter is now specified as the number of bytes instead of bits. The single use of this function is in the EVM's MSTORE instruction. Big and String2Big are replaced by ParseBig, which is slightly stricter. It previously accepted leading zeros for hexadecimal inputs but treated decimal inputs as octal if a leading zero digit was present. ParseUint64 is used in places where String2Big was used to decode a uint64. The new functions MustParseBig and MustParseUint64 are now used in many places where parsing errors were previously ignored. * common: delete unused big integer variables * accounts/abi: replace uses of BytesToBig with use of encoding/binary * common: remove BytesToBig * common: remove Bytes2Big * common: remove BigTrue * cmd/utils: add BigFlag and use it for error-checked integer flags While here, remove environment variable processing for DirectoryFlag because we don't use it. * core: add missing error checks in genesis block parser * common: remove String2Big * cmd/evm: use utils.BigFlag * common/math: check for 256 bit overflow in ParseBig This is supposed to prevent silent overflow/truncation of values in the genesis block JSON. Without this check, a genesis block that set a balance larger than 256 bits would lead to weird behaviour in the VM. * cmd/utils: fixup import | ||||
* | Merge pull request #3705 from karalabe/drop-legacy-commands | Péter Szilágyi | 2017-02-24 | 4 | -446/+0 |
|\ | | | | | Drop legacy commands | ||||
| * | cmd/geth: drop upgradedb subcommand since it's unfeasible | Péter Szilágyi | 2017-02-23 | 2 | -61/+0 |
| | | | | | | | | | | | | | | This command was meant as a hackish way to upgrade our chain database way back when nobody cared for live updates and the size of the database along with its import times was small. With the current database weighing hundreds of GBs and processing times of many days, this command is just ludicrous. | ||||
| * | cmd/ethtest: drop the manual test tool in favor of hive | Péter Szilágyi | 2017-02-23 | 1 | -224/+0 |
| | | | | | | | | | | | | All the state and block tests are ran as part of our CU builds internally, as well as have been added to hive black-box tests. As such, there is no reason for maintaining an extra standalone tool. | ||||
| * | cmd/gethrpctest: ethereum/rpc-tests is deprecated | Péter Szilágyi | 2017-02-23 | 1 | -161/+0 |
| | | | | | | | | | | | | | | | | | | Only ethereum/rpc-tests used this command, which hasn't been maintained for over a year now, a lot of tests failing. What's left of it was moved underneath hive, which can run the entire test against a black-box geth without special commands. Also a new RPC test suite is being added which is also based on black box tests, not needing special commands any more. | ||||
* | | whisper: fixed temporary directory for tests (#3707) | gluk256 | 2017-02-24 | 1 | -2/+2 |
| | | |||||
* | | whisper: expiry refactoring (#3706) | gluk256 | 2017-02-24 | 5 | -36/+72 |
|/ | |||||
* | Merge pull request #3696 from karalabe/contextual-logger | Péter Szilágyi | 2017-02-23 | 172 | -3607/+3751 |
|\ | | | | | Contextual logger | ||||
| * | internal, log: support debug log prints, displaying log origins | Péter Szilágyi | 2017-02-23 | 2 | -7/+61 |
| | | |||||
| * | cmd, whisper/mailserver: revert to utils.Fatalf | Péter Szilágyi | 2017-02-23 | 12 | -137/+118 |
| | | |||||
| * | accounts, cmd: port packages over to the new logging system | Péter Szilágyi | 2017-02-23 | 10 | -70/+74 |
| | | |||||
| * | eth, les, swarm: fix go vet issues sufraced by log15 | Péter Szilágyi | 2017-02-23 | 8 | -10/+10 |
| | | |||||
| * | all: blidly swap out glog to our log15, logs need rework | Péter Szilágyi | 2017-02-23 | 147 | -3693/+1546 |
| | | |||||
| * | log: implement a glog style pattern matching handler | Péter Szilágyi | 2017-02-23 | 1 | -0/+227 |
| | | |||||
| * | swarm: remove superfluous line break in log statements | Péter Szilágyi | 2017-02-23 | 2 | -9/+5 |
| | | |||||
| * | p2p: remove trailing newlines from log messages | Péter Szilágyi | 2017-02-23 | 5 | -19/+19 |
| | | |||||
| * | log: add support for trace level, exit on critical | Péter Szilágyi | 2017-02-23 | 5 | -0/+23 |
| | | |||||
| * | log, vendor: vendor in log15 inline into our codebase | Péter Szilágyi | 2017-02-23 | 26 | -0/+2006 |
|/ | |||||
* | Whisper API fixed (#3687) | gluk256 | 2017-02-23 | 11 | -111/+182 |
| | | | | | | | | | | | | | | | | | | | | | | * whisper: wnode updated for tests with geth * whisper: updated processing of incoming messages * whisper: symmetric encryption updated * whisper: filter id type changed to enhance security * whisper: allow filter without topic for asymmetric encryption * whisper: POW updated * whisper: logging updated * whisper: spellchecker update * whisper: error handling changed * whisper: JSON field names fixed | ||||
* | trie: add difference iterator (#3637) | Nick Johnson | 2017-02-23 | 5 | -130/+327 |
| | | | | | This PR implements a differenceIterator, which allows iterating over trie nodes that exist in one trie but not in another. This is a prerequisite for most GC strategies, in order to find obsolete nodes. | ||||
* | core, core/state, core/vm: remove exported account getters (#3618) | Jeffrey Wilcke | 2017-02-23 | 23 | -238/+245 |
| | | | | Removed exported statedb object accessors, reducing the chance for nasty bugs to creep in. It's also ugly and unnecessary to have these methods. | ||||
* | Merge pull request #3698 from karalabe/govet-latest-only | Péter Szilágyi | 2017-02-22 | 1 | -1/+10 |
|\ | | | | | travis: only run go vet and misspell on latest Go | ||||
| * | travis: only run go vet and misspell on latest Go | Péter Szilágyi | 2017-02-22 | 1 | -1/+10 |
|/ | |||||
* | Merge pull request #3682 from karalabe/update-go1.8 | Péter Szilágyi | 2017-02-22 | 2 | -8/+30 |
|\ | | | | | travis, appveyor: update builders to Go 1.8 | ||||
| * | travis: fallback ARM64 builds to Go 1.7.5 due to compiler bug | Péter Szilágyi | 2017-02-20 | 1 | -0/+19 |
| | | |||||
| * | travis, appveyor: update builders to Go 1.8 | Péter Szilágyi | 2017-02-20 | 2 | -8/+11 |
| | | |||||
* | | core/vm, crypto: support for go-fuzz (#3672) | Jeffrey Wilcke | 2017-02-21 | 1 | -0/+20 |
| | | |||||
* | | cmd/geth: added 'geth bug' command (#3684) | Jeffrey Wilcke | 2017-02-20 | 3 | -0/+155 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd/geth: added 'geth bug' command Added bug command to geth, which will open a browser window with an issue template and some additional system information. * cmd/geth: update bug with better infos * cmd/geth: added browser fallback * cmd/geth: govet yo momma | ||||
* | | tests: cleanup tester blockchain after test run (#3692) | Péter Szilágyi | 2017-02-20 | 1 | -0/+1 |
|/ | |||||
* | Merge pull request #3681 from karalabe/usb-hidapi | Nick Johnson | 2017-02-20 | 83 | -1838/+5659 |
|\ | | | | | accounts/usbwallet: swap karalabe/gousb to karalabe/hid | ||||
| * | accounts/usbwallet, vendor: use hidapi instead of libusb directly | Péter Szilágyi | 2017-02-17 | 83 | -1838/+5659 |
| | | |||||
* | | VERSION, params: bumped unstable version to 1.6 (#3685) | Jeffrey Wilcke | 2017-02-18 | 2 | -3/+3 |
| | | |||||
* | | core/blockchain: Change iterator in procFutureBlocks to use lru.Peek instead ↵ | Martin Holst Swende | 2017-02-18 | 1 | -1/+1 |
| | | | | | | | | of Get (#3655) | ||||
* | | crypto: add btcec fallback for sign/recover without cgo (#3680) | Felix Lange | 2017-02-18 | 32 | -224/+3929 |
| | | | | | | | | | | | | | | | | | | | | | | * vendor: add github.com/btcsuite/btcd/btcec * crypto: add btcec fallback for sign/recover without cgo This commit adds a non-cgo fallback implementation of secp256k1 operations. * crypto, core/vm: remove wrappers for sha256, ripemd160 | ||||
* | | common/math: "optimised" SafeMul and added comment on Exp (#3675) | Jeffrey Wilcke | 2017-02-18 | 2 | -2/+5 |
| | | |||||
* | | Merge pull request #3683 from karalabe/swarm-go1.8-vet-fix | Péter Szilágyi | 2017-02-17 | 1 | -0/+3 |
|\ \ | |/ |/| | swarm/api/http: fix go vet issue on Go 1.8 | ||||
| * | swarm/api/http: fix go vet issue on Go 1.8 | Péter Szilágyi | 2017-02-17 | 1 | -0/+3 |
|/ | |||||
* | Merge pull request #3679 from fjl/vendor-govendor | Péter Szilágyi | 2017-02-17 | 168 | -6323/+3390 |
|\ | | | | | vendor: update dependencies with github.com/kardianos/govendor | ||||
| * | vendor: update dependencies with github.com/kardianos/govendor | Felix Lange | 2017-02-16 | 168 | -6323/+3390 |
|/ | |||||
* | logger: remove Core verbosity level (#3659) | Felix Lange | 2017-02-15 | 8 | -18/+17 |
| | |||||
* | Merge pull request #3674 from obscuren/gaz64 | Péter Szilágyi | 2017-02-15 | 47 | -826/+1087 |
|\ | | | | | params: core, core/vm, miner: 64bit gas instructions | ||||
| * | params: core, core/vm, miner: 64bit gas instructions | Jeffrey Wilcke | 2017-02-14 | 47 | -826/+1087 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test | ||||
* | | whisper: interface changed to simplify the transition to v5 | gluk256 | 2017-02-14 | 9 | -90/+96 |
|/ | | | | | | | | | | | | | | | | * whisper: mailserver test introduced, refactoring * whisper: validation test updated * whisper: max number of peers fixed * whisper: verification bug fixed * whisper: esthetic fix * whisper: interface changed to simplify the transition to v5 * whisper: preparation for version switch | ||||
* | core, eth, internal: Added `debug_getBadBlocks()` method (#3654) | Martin Holst Swende | 2017-02-14 | 4 | -2/+42 |
| | | | | | | | | | | | | | | | | * core,eth,internal: Added `debug_getBadBlocks()` method When bad blocks are discovered, these are stored within geth. An RPC-endpoint makes them availablewithin the `debug` namespace. This feature makes it easier to discover network forks. ``` * core, api: go format + docs * core/blockchain: Documentation, fix minor nitpick * core: fix failing blockchain test | ||||
* | VERSION, params: start 1.5.10 development cycle | Péter Szilágyi | 2017-02-14 | 2 | -5/+5 |
| | |||||
* | Merge pull request #3671 from karalabe/1.5.9-stablev1.5.9 | Péter Szilágyi | 2017-02-14 | 1 | -4/+4 |
|\ | | | | | params: 1.5.9 stable | ||||
| * | params: 1.5.9 stable | Péter Szilágyi | 2017-02-14 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #3670 from karalabe/docker-usb-fix | Péter Szilágyi | 2017-02-14 | 4 | -9/+12 |
|\ \ | | | | | | | Dockerfile: support building USB on Alpine, ignore temp files | ||||
| * | | Dockerfile: support building USB on Alpine, ignore temp files | Péter Szilágyi | 2017-02-14 | 4 | -9/+12 |
| |/ | |||||
* | | Merge pull request #3649 from ethersphere/swarm-sigterm-fix | Péter Szilágyi | 2017-02-14 | 1 | -0/+10 |
|\ \ | |/ |/| | cmd/swarm: handle SIGTERM unix signal for clean exit | ||||
| * | cmd/swarm: handle SIGTERM unix signal for clean exit | zelig | 2017-02-13 | 1 | -0/+10 |
|/ | |||||
* | Merge pull request #3668 from obscuren/revert-gas64 | Péter Szilágyi | 2017-02-13 | 49 | -1320/+1068 |
|\ | | | | | Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)" | ||||
| * | Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)" | Jeffrey Wilcke | 2017-02-13 | 49 | -1320/+1068 |
|/ | | | | This reverts commit 8b57c494908637a5c0e74f8f7a13b3218e026757. | ||||
* | Merge pull request #3592 from karalabe/hw-wallets | Péter Szilágyi | 2017-02-13 | 122 | -909/+36084 |
|\ | | | | | accounts: initial support for Ledger hardware wallets | ||||
| * | accounts: ledger and HD review fixes | Péter Szilágyi | 2017-02-13 | 5 | -61/+40 |
| | | | | | | | | | | | | | | | | | | - Handle a data race where a Ledger drops between list and open - Prolong Ledger tx confirmation window to 30 days from 1 minute - Simplify Ledger chainid-signature calculation and validation - Simplify Ledger USB APDU request chunking algorithm - Silence keystore account cache notifications for manual actions - Only enable self derivations if wallet open succeeds | ||||
| * | accounts/usbwallet: detect and report in Ledger is in browser mode | Péter Szilágyi | 2017-02-13 | 1 | -4/+17 |
| | | |||||
| * | accounts/usbwallet: make wallet responsive while Ledger is busy | Péter Szilágyi | 2017-02-13 | 2 | -151/+317 |
| | | |||||
| * | accounts/usbwallet: Ledger teardown on health-check failure | Péter Szilágyi | 2017-02-13 | 2 | -8/+33 |
| | | |||||
| * | accounts, cmd, internal, node: implement HD wallet self-derivation | Péter Szilágyi | 2017-02-13 | 9 | -136/+383 |
| | | |||||
| * | accounts, cmd, internal, mobile, node: canonical account URLs | Péter Szilágyi | 2017-02-13 | 19 | -116/+195 |
| | | |||||
| * | accounts, cmd, eth, internal, miner, node: wallets and HD APIs | Péter Szilágyi | 2017-02-13 | 23 | -603/+1502 |
| | | |||||
| * | accounts/usbwallet: two phase Ledger refreshes to avoid Windows bug | Péter Szilágyi | 2017-02-13 | 1 | -25/+24 |
| | | |||||
| * | accounts/usbwallet: support Ledger app version <1.0.2 | Péter Szilágyi | 2017-02-13 | 1 | -1/+5 |
| | | |||||
| * | accounts/usbwallet: skip support on iOS altogether | Péter Szilágyi | 2017-02-13 | 4 | -0/+44 |
| | | |||||
| * | build: work around CGO linker bug on pre-1.8 Go | Péter Szilágyi | 2017-02-13 | 1 | -0/+8 |
| | | |||||
| * | accounts/usbwallet: initial support for Ledger wallets | Péter Szilágyi | 2017-02-13 | 4 | -2/+762 |
| | | |||||
| * | vendor: pull in support for USB devices via libusb/gousb | Péter Szilágyi | 2017-02-13 | 63 | -0/+32572 |
| | | |||||
| * | accounts, cmd, eth, internal, mobile, node: split account backends | Péter Szilágyi | 2017-02-13 | 47 | -688/+1068 |
| | | |||||
* | | swarm/network: fix chunk integrity checks (#3665) | Viktor Trón | 2017-02-13 | 6 | -21/+125 |
| | | | | | | | | | | | | | | | | | | | | * swarm/network: integrity on incoming known chunks * swarm/network: fix integrity check for incoming chunks * swarm/storage: imrpoved integrity checking on chunks * dbstore panics on corrupt chunk entry an prompts user to run cleandb * memstore adds logging for garbage collection * dbstore refactor item delete. correct partial deletes in Get * cmd/swarm: added cleandb subcommand | ||||
* | | whisper: add tests for mailserver (#3631) | gluk256 | 2017-02-13 | 3 | -9/+217 |
|/ | |||||
* | core: ignore 0x prefix for code in JSON genesis blocks (#3656) | Martin Holst Swende | 2017-02-13 | 1 | -1/+1 |
| | |||||
* | cmd/swarm: manifest manipulation commands (#3645) | Zahoor Mohamed | 2017-02-13 | 3 | -0/+423 |
| | |||||
* | Merge pull request #3662 from karalabe/travis-linux-android | Péter Szilágyi | 2017-02-13 | 1 | -13/+38 |
|\ | | | | | travis: split Android off OSX, use native image | ||||
| * | travis: split Android off OSX, use native image | Péter Szilágyi | 2017-02-11 | 1 | -13/+38 |
|/ | |||||
* | Merge pull request #3648 from bas-vk/abigen | Péter Szilágyi | 2017-02-10 | 1 | -1/+3 |
|\ | | | | | cmd/abigen: parse contract name as abi identifier | ||||
| * | cmd/abigen: parse contract name as abi identifier | Bas van Kervel | 2017-02-07 | 1 | -1/+3 |
| | | |||||
* | | swarm/storage: release chunk storage after stop swarm (#3651) | Maksim | 2017-02-09 | 8 | -9/+36 |
| | | | | | | closes #3650 | ||||
* | | Merge pull request #3641 from karalabe/events-init-once | Péter Szilágyi | 2017-02-03 | 1 | -11/+5 |
|\ \ | | | | | | | event: use sync.Once for init for faster/cleaner locking | ||||
| * | | event: use sync.Once for init for faster/cleaner locking | Péter Szilágyi | 2017-02-03 | 1 | -11/+5 |
| | | | |||||
* | | | accounts/abi, internal/jsre/deps: gofmt -w -s (#3636) | Diego Siqueira | 2017-02-03 | 2 | -4/+4 |
|/ / | | | | | Signed-off-by: DiSiqueira <dieg0@live.com> | ||||
* | | Merge pull request #3635 from holiman/hive_fixes | Péter Szilágyi | 2017-02-03 | 1 | -0/+2 |
|\ \ | | | | | | | core/genesis: add support for setting nonce in 'alloc' | ||||
| * | | core/genesis: add support for setting nonce in 'alloc' | Martin Holst Swende | 2017-01-25 | 1 | -0/+2 |
| | | | | | | | | | | | | This is to be able to set `pre`-state when performing blockchain tests through Hive, we need to be able to set the nonce. | ||||
* | | | Merge pull request #3605 from fjl/event-feed | Péter Szilágyi | 2017-02-03 | 15 | -49/+1256 |
|\ \ \ | | | | | | | | | event: add new Subscription type and related utilities | ||||
| * | | | event: address review issues (multiple commits) | Felix Lange | 2017-02-03 | 3 | -16/+93 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event: address Feed review issues event: clarify role of NewSubscription function event: more Feed review fixes * take sendLock after dropping f.mu * add constant for number of special cases event: fix subscribing/unsubscribing while Send is blocked | ||||
| * | | | rpc: send nil on subscription Err channel when Client is closed | Felix Lange | 2017-01-26 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | This change makes client subscriptions compatible with the new Subscription semantics introduced in the previous commit. | ||||
| * | | | event: add new Subscription type and related utilities | Felix Lange | 2017-01-26 | 9 | -7/+1144 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a new Subscription type, which is synonymous with ethereum.Subscription. It also adds a couple of utilities that make working with Subscriptions easier. The mot complex utility is Feed, a synchronisation device that implements broadcast subscriptions. Feed is slightly faster than TypeMux and will replace uses of TypeMux across the go-ethereum codebase in the future. | ||||
| * | | | event: deprecate TypeMux and related types | Felix Lange | 2017-01-25 | 6 | -41/+31 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Subscription type is gone, all uses are replaced by *TypeMuxSubscription. This change is prep-work for the introduction of the new Subscription type in a later commit. gorename -from '"github.com/ethereum/go-ethereum/event"::Event' -to TypeMuxEvent gorename -from '"github.com/ethereum/go-ethereum/event"::muxsub' -to TypeMuxSubscription gofmt -w -r 'Subscription -> *TypeMuxSubscription' ./event/*.go find . -name '*.go' -and -not -regex '\./vendor/.*' \| xargs gofmt -w -r 'event.Subscription -> *event.TypeMuxSubscription' | ||||
* | / | params: core, core/vm, miner: 64bit gas instructions (#3514) | Jeffrey Wilcke | 2017-02-02 | 47 | -783/+1042 |
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test | ||||
* | | state: take write lock in GetNonce (#3625) | Brian Schroeder | 2017-02-01 | 1 | -3/+5 |
| | | | | | | | | We must take a write lock here because `GetNonce` calls `StateDB.GetStateObject`, which mutates the DB's live set. | ||||
* | | params, VERSION: v1.5.9-unstable | Felix Lange | 2017-02-01 | 2 | -5/+5 |
| | | |||||
* | | params: v1.5.8-stablev1.5.8 | Felix Lange | 2017-02-01 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #3607 from zsfelfoldi/light-fix2 | Felix Lange | 2017-02-01 | 7 | -80/+65 |
|\ \ | | | | | | | les: fix private net issues, enable adding peers manually again | ||||
| * | | les, cmd/util: disable topic discovery with --nodiscover | Zsolt Felfoldi | 2017-01-27 | 2 | -5/+15 |
| | | | |||||
| * | | les: remove delayed les server starting | Zsolt Felfoldi | 2017-01-26 | 4 | -37/+5 |
| | | | |||||
| * | | les: add unknown peers to server pool instead of rejecting them | Zsolt Felfoldi | 2017-01-26 | 2 | -38/+45 |
| | | | |||||
* | | | cmd/wnode, whisper: add whisper CLI tool and mail server (#3580) | gluk256 | 2017-01-31 | 8 | -30/+769 |
| | | | |||||
* | | | Merge pull request #3615 from nolash/bzzpathfix_real5 | Péter Szilágyi | 2017-01-30 | 6 | -15/+187 |
|\ \ \ | | | | | | | | | cmd/swarm, swarm/api: bzzr improve + networkid prio | ||||
| * | | | swarm/api/http: add missing copyright header | Péter Szilágyi | 2017-01-30 | 1 | -0/+16 |
| | | | | |||||
| * | | | cmd/swarm, swarm/api: bzzr improve + networkid prio | nolash | 2017-01-27 | 6 | -15/+171 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #3444 fixes #3494 networkid override Added comments to explain why test against 0 appears twice * Command line overrides saved config, saved config overrides system default --- fixes #3476 bzzr get with path Finally a hopefully clean commit for this PR Added check for empty path to avoid SIGSEGV in path parser and resolver Added requested tests for empty path and non-existing manifest. However signature for StartHTTPServer had changed. Now it's hacked as so: StartHttpServer(api.API, &Server{Addr: "127.0.0.1:8504", CorsString: ""}) * Parse url before resolve when path and ENS is supplied, example * swarm/api/http proxy server test for retrieval of subpath through get * Removed nil entry assignment on subtrie leaf in recursive key retrieval * Cleaned up path-or-no-path condition in proxy server get handler * swarm: processed with gofmt refers to lash/go-ethereum@90daa7a * swarm: Added public access method Parse alias to parse * swarm: processed with gofmt References nolash/go-ethereum@2ec3fd7 * Rename parse to Parse, removed alias | ||||
* | | | | Merge pull request #3624 from kaneshin/patch-01 | Péter Szilágyi | 2017-01-30 | 2 | -0/+2 |
|\ \ \ \ | | | | | | | | | | | cmd/geth, cmd/swarm: Fix to close file handler appropriately | ||||
| * | | | | cmd/geth, cmd/swarm: Fix to close file handler appropriately | Shintaro Kaneko | 2017-01-30 | 2 | -0/+2 |
| | | | | | |||||
* | | | | | Merge pull request #3623 from kaneshin/patch-1 | Péter Szilágyi | 2017-01-30 | 1 | -1/+1 |
|\ \ \ \ \ | |/ / / / |/| | | | | build: Fix tiny typo | ||||
| * | | | | build: Fix tiny typo | Shintaro Kaneko | 2017-01-30 | 1 | -1/+1 |
|/ / / / | |||||
* / / / | core/types: add unittest for tx json serialization (#3609) | bas-vk | 2017-01-27 | 1 | -1/+43 |
|/ / / | |||||
* / / | core: fix a small typo in blockchain.go (#3611) | Vivek Anand | 2017-01-26 | 1 | -1/+1 |
|/ / | |||||
* / | console, internal/web3ext: remove bzz and ens extensions (#3602) | Felix Lange | 2017-01-25 | 2 | -97/+4 |
|/ | | | | | web3.js includes bzz methods and throws an error when the extension module is reregistered. The ENS RPC API is deprecated and not exposed by anything. | ||||
* | eth/downloader: improve deliverNodeData (#3588) | Felix Lange | 2017-01-24 | 1 | -72/+52 |
| | | | | | Commit d3b751e accidentally deleted a crucial 'return' statement, leading to a crash in case of an issue with node data. This change improves the fix in PR #3591 by removing the lock entirely. | ||||
* | Merge pull request #3599 from karalabe/docker-alpine-cacerts | Péter Szilágyi | 2017-01-24 | 4 | -28/+24 |
|\ | | | | | containers/docker: update base images, add CA certs, build internally on Ubuntu | ||||
| * | containers/docker: update ubuntu images to build, not pull | Péter Szilágyi | 2017-01-23 | 2 | -24/+20 |
| | | |||||
| * | containers/docker: update to alpine 3.5, add CA certificates | Péter Szilágyi | 2017-01-23 | 2 | -4/+4 |
| | | |||||
* | | core/types: make Transaction zero value printable (#3595) | Felix Lange | 2017-01-24 | 1 | -14/+18 |
|/ | |||||
* | crypto/secp256k1: sign with deterministic K (rfc6979) (#3561) | Felix Lange | 2017-01-23 | 2 | -8/+22 |
| | |||||
* | cmd/evm: added debug flag (back) (#3554) | Martin Holst Swende | 2017-01-23 | 1 | -0/+2 |
| | | | | | | * evm: added debug flag (back) * cmd/evm: gofmt | ||||
* | accounts/abi/bind, internal/ethapi: binary search gas estimation (#3587) | Péter Szilágyi | 2017-01-21 | 3 | -9/+100 |
| | | | | | | | | | | | | | Gas estimation currently mostly works, but can underestimate for more funky refunds. This is because various ops (e.g. CALL) need more gas to run than they actually consume (e.g. 2300 stipend that is refunded if not used). With more intricate contract interplays, it becomes almost impossible to return a proper value to the user. This commit swaps out the simplistic gas estimation to a binary search approach, honing in on the correct gas use. This does mean that gas estimation needs to rerun the transaction log(max-price) times to measure whether it fails or not, but it's a price paid by the transaction issuer, and it should be worth it to support proper estimates. | ||||
* | types: bugfix invalid V derivation on tx json unmarshal (#3594) | bas-vk | 2017-01-21 | 2 | -2/+3 |
| | |||||
* | internal/guide: initial test suite to ensure guide snippets run ok (#3582) | Péter Szilágyi | 2017-01-20 | 2 | -0/+118 |
| | |||||
* | travis: Install Android NDK explicitly, removed from gomobile (#3593) | Péter Szilágyi | 2017-01-20 | 2 | -2/+10 |
| | | | | | | The Android NDK was recently removed from gomobile, leading to our Android builds failing. Starting from https://go-review.googlesource.com/#/c/35173/ , gomobile requires a locally installed NDK. This PR ensures that travis installs that too before running the build steps. | ||||
* | eth/downloader: fix mutex regression causing panics on fail (#3591) | Péter Szilágyi | 2017-01-20 | 1 | -1/+2 |
| | |||||
* | Merge pull request #3584 from obscuren/dead-code | Péter Szilágyi | 2017-01-18 | 1 | -3/+0 |
|\ | | | | | core: removal of dead-code | ||||
| * | core: removal of dead-code | Jeffrey Wilcke | 2017-01-18 | 1 | -3/+0 |
|/ | | | | | | Removal of dead code that appeard as if we had a consensus issue. This however is not the case as the proper error catching happens in the vm package instead. | ||||
* | Merge pull request #3579 from bas-vk/natspec | Péter Szilágyi | 2017-01-17 | 8 | -23/+3 |
|\ | | | | | cmd,eth,les,internal: remove natspec support | ||||
| * | cmd,eth,les,internal: remove natspec support | Bas van Kervel | 2017-01-17 | 8 | -23/+3 |
| | | |||||
* | | core/blockchain: Made logging of reorgs more structured (#3573) | Martin Holst Swende | 2017-01-17 | 1 | -6/+13 |
| | | | | | | | | | | | | | | | | * core: Made logging of reorgs more structured, also always log if reorg is > 63 blocks long * core/blockchain: go fmt * core/blockchain: Minor fixes to the reorg reporting | ||||
* | | Merge pull request #3581 from karalabe/accounts-polish | Péter Szilágyi | 2017-01-17 | 3 | -8/+8 |
|\ \ | | | | | | | accounts, mobile: make account manager API a bit more uniform | ||||
| * | | accounts, mobile: make account manager API a bit more uniform | Péter Szilágyi | 2017-01-17 | 3 | -8/+8 |
| |/ | |||||
* / | cmd/geth, core: add support for recording SHA3 preimages (#3543) | Nick Johnson | 2017-01-17 | 29 | -46/+156 |
|/ | |||||
* | params, VERSION: 1.5.8 unstable | Felix Lange | 2017-01-16 | 2 | -5/+5 |
| | |||||
* | params: stable 1.5.7v1.5.7 | Felix Lange | 2017-01-16 | 1 | -4/+4 |
| | |||||
* | les: fixed transaction sending deadlock (#3568) | Felföldi Zsolt | 2017-01-16 | 1 | -1/+0 |
| | |||||
* | Merge pull request #3570 from fjl/hexutil-zero-fix | Péter Szilágyi | 2017-01-16 | 3 | -13/+4 |
|\ | | | | | common/hexutil: fix EncodeBig, Big.MarshalJSON | ||||
| * | common/hexutil: fix EncodeBig, Big.MarshalJSON | Felix Lange | 2017-01-16 | 3 | -13/+4 |
| | | | | | | | | | | The code was too clever and failed to include zeros on a big.Word boundary. | ||||
* | | Merge pull request #3560 from karalabe/ci-misspell | Péter Szilágyi | 2017-01-13 | 3 | -4/+35 |
|\ \ | |/ |/| | travis, appveyor, build: add source spell checking | ||||
| * | appveyor, build: fix review requests | Péter Szilágyi | 2017-01-13 | 2 | -25/+31 |
| | | |||||
| * | build: spellcheck individual packages (Windows path limits) | Péter Szilágyi | 2017-01-13 | 1 | -7/+9 |
| | | |||||
| * | accounts/abi: fix comment spelling error | Péter Szilágyi | 2017-01-13 | 1 | -1/+1 |
| | | |||||
| * | travis, appveyor, build: add source spell checking | Péter Szilágyi | 2017-01-13 | 3 | -3/+26 |
| | | |||||
* | | common/hexutil: allow empty strings when decoding JSON (#3559) | Felix Lange | 2017-01-13 | 2 | -5/+5 |
|/ | |||||
* | eth: accept leading zeros for nonce parameter of submitWork (#3558) | Felix Lange | 2017-01-13 | 4 | -6/+8 |
| | |||||
* | crypto/secp256k1: update to github.com/bitcoin-core/secp256k1 @ 9d560f9 (#3544) | Felix Lange | 2017-01-13 | 79 | -1998/+8229 |
| | | | | | - Use defined constants instead of hard-coding their integer value. - Allocate secp256k1 structs on the C stack instead of converting []byte - Remove dead code | ||||
* | internal: update web3.js to 0.18.1, embed deps with go-bindata (#3545) | Péter Szilágyi | 2017-01-13 | 6 | -327/+774 |
| | |||||
* | Merge pull request #3555 from obscuren/unskip-test | Péter Szilágyi | 2017-01-12 | 1 | -1/+1 |
|\ | | | | | tests: unskip test | ||||
| * | tests: unskip test | Jeffrey Wilcke | 2017-01-12 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #3553 from bas-vk/rm-olympic-support | Péter Szilágyi | 2017-01-12 | 6 | -62/+15 |
|\ \ | | | | | | | core: remove support for Olympic network | ||||
| * | | core: remove support for Olympic network | Bas van Kervel | 2017-01-12 | 6 | -62/+15 |
|/ / | |||||
* | | Merge pull request #3551 from fjl/core-import-log-align | Péter Szilágyi | 2017-01-11 | 2 | -10/+8 |
|\ \ | | | | | | | core: improve import log alignment | ||||
| * | | core: improve import log alignment | Felix Lange | 2017-01-11 | 2 | -10/+8 |
| |/ | |||||
* | | ethdb: Implement interface for prefixed operations to the DB (#3536) | Nick Johnson | 2017-01-11 | 1 | -0/+52 |
| | | |||||
* | | internal/ethapi: fix duration parameter of personal_unlockAccount (#3542) | Felix Lange | 2017-01-11 | 1 | -5/+8 |
| | | |||||
* | | Merge pull request #3546 from fjl/deps-update | Péter Szilágyi | 2017-01-11 | 130 | -1030/+14047 |
|\ \ | | | | | | | vendor: update dependencies | ||||
| * | | vendor: update all dependencies except Azure SDK | Felix Lange | 2017-01-11 | 130 | -1030/+14047 |
| |/ | | | | | | | | | The Azure SDK doesn't support Go 1.5 anymore. We can't upgrade it until Go 1.8 comes out. | ||||
* | | Merge pull request #3548 from fjl/geth-fix-bootnodes | Péter Szilágyi | 2017-01-11 | 1 | -4/+4 |
|\ \ | |/ |/| | cmd/utils: fix comma-separated --bootnodes | ||||
| * | cmd/utils: fix comma-separated --bootnodes | Felix Lange | 2017-01-11 | 1 | -4/+4 |
|/ | |||||
* | Merge pull request #3535 from fjl/all-ineffassign | Péter Szilágyi | 2017-01-10 | 34 | -186/+110 |
|\ | | | | | all: fix ineffectual assignments | ||||
| * | all: fix ineffectual assignments and remove uses of crypto.Sha3 | Felix Lange | 2017-01-09 | 31 | -103/+108 |
| | | | | | | | | | | go get github.com/gordonklaus/ineffassign ineffassign . | ||||
| * | generators: delete dead code | Felix Lange | 2017-01-09 | 1 | -81/+0 |
| | | | | | | | | We don't use this anymore. |