aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* accounts/abi: enable struct golang binding generation (#18491)gary rong2019-07-039-81/+469
| | | | | | | | | | | | | | | | * accounts/abi, cmd/abigen: support tuple accounts/abi/bind, cmd/abigen: add objc back accounts/abi/bind: use byte[24] as function indicator accounts/abi/bind: resolve struct slice or array accounts/abi/bind: remove sort logic accounts: fix issues in abi * accounts/abi: address comment
* core: fix receipt insertion (#19764)gary rong2019-07-031-5/+9
|
* core: fix chain indexer (#19786)gary rong2019-07-031-1/+1
| | | | | | | This PR fixes an issue in chain indexer. Currently chain indexer will validate whether the stored data is canonical by comparing section head and canonical hash. But the header of the checkpoint may not exist in the database. We should skip validation for sections below the checkpoint.
* core: fix chain indexer reorg bug (#19748)Felföldi Zsolt2019-07-021-3/+18
| | | | | | * core: fix chain indexer reorg bug * core: prevent reverting valid section when reorg happens
* Merge pull request #19784 from karalabe/fix-constantinople-fixPéter Szilágyi2019-07-029-28/+4
|\ | | | | cmd, eth, les, param: drop --override.constantinople
| * cmd, eth, les, param: drop --override.constantinoplePéter Szilágyi2019-07-029-28/+4
|/
* cmd/clef, signer: refresh tutorial, fix noticed issues (#19774)Péter Szilágyi2019-07-0216-521/+704
| | | | | | | | * cmd/clef, signer: refresh tutorial, fix noticed issues * cmd/clef, signer: support removing stored keys (delpw + rules) * cmd/clef: polishes + Geth integration in the tutorial
* accounts/abi/bind: Accept function ptr parameter (#19755)Guillaume Ballet2019-07-026-14/+100
| | | | | | | | | | | | * accounts/abi/bind: Accept function ptr parameter They are translated as [24]byte * Add Java template version * accounts/abi/bind: fix merge issue * Fix CI
* accounts/abi: Fix method overwritten by same name methods. (#17099)zer0to0ne2019-07-013-33/+58
| | | | | | | | | * accounts/abi: Fix method overwritten by same name methods. * accounts/abi: Fix method overwritten by same name methods. * accounts/abi: avoid possible name conflict Co-authored-by: Guillaume Ballet <gballet@gmail.com>
* all: on-chain oracle checkpoint syncing (#19543)gary rong2019-06-2849-381/+2859
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * all: implement simple checkpoint syncing cmd, les, node: remove callback mechanism cmd, node: remove callback definition les: simplify the registrar les: expose checkpoint rpc services in the light client les, light: don't store untrusted receipt cmd, contracts, les: discard stale checkpoint cmd, contracts/registrar: loose restriction of registeration cmd, contracts: add replay-protection all: off-chain multi-signature contract params: deploy checkpoint contract for rinkeby cmd/registrar: add raw signing mode for registrar cmd/registrar, contracts/registrar, les: fixed messages * cmd/registrar, contracts/registrar: fix lints * accounts/abi/bind, les: address comments * cmd, contracts, les, light, params: minor checkpoint sync cleanups * cmd, eth, les, light: move checkpoint config to config file * cmd, eth, les, params: address comments * eth, les, params: address comments * cmd: polish up the checkpoint admin CLI * cmd, contracts, params: deploy new version contract * cmd/checkpoint-admin: add another flag for clef mode signing * cmd, contracts, les: rename and regen checkpoint oracle with abigen
* les: prefer nil slices over zero-length slices (#19081)Matthew Halpern2019-06-271-4/+6
|
* mobile: fix mobile interface (#19180)gary rong2019-06-279-233/+903
| | | | | | | | | | | | * mobile: fix mobile interface * mobile, accounts: generate correct java binding * accounts: fix java type binding * mobile: support integer slice * accounts/abi/bind, cmd/abigen: implement java binding tests
* eth: fix sync bloom panic (#19757)gary rong2019-06-263-16/+22
| | | | | | * eth: fix sync bloom panic * eth: delete useless test cases
* whisper: PoW calculations as specified in EIP-627 (#19753)Guillaume Ballet2019-06-252-13/+14
| | | | | | * whisper: PoW calculations as specified in EIP-627 * Fix unit tests
* cmd/evm: evm input minor fixes (#19740)Martin Holst Swende2019-06-251-19/+25
| | | | | | * cmd/evm: evm input minor fixes, handle prefix, validate length, fixes #18041 * cmd/evm: remove whitespace
* core/state, cmd/geth: streaming json output for dump command (#15475)Martin Holst Swende2019-06-247-44/+142
| | | | | | | | | | | | * core/state, cmd/geth: streaming json output dump cmd + optional code+storage * dump: add option to continue even if preimages are missing * core, evm: lint nits * cmd: use local flags for dump, omit empty code/storage * core/state: fix state dump test
* abi: adding the method EventByID and its test (#19359)salanfe2019-06-242-0/+81
| | | | | | | This function searches for an event+parameters in the ABI and returns it if found. Co-authored-by: Victor Tran <vu.tran54@gmail.com> Co-authored-by: Guillaume Ballet <gballet@gmail.com>
* rpc: fix subscription buffer documentation and test (#19747)Rob Mulholand2019-06-242-2/+5
| | | | | | This PR updates a comment about the maximum client subscription buffer to reflect changes made previously, and fixes a test that wouldn't fail when wantError == true but execution did not return an error.
* graphql: check the integrity of the CDN files (#19742)Kurkó Mihály2019-06-241-6/+31
| | | | | | * graphql: check the integrity of the cdn files * graphql: omit go-bindata
* core/vm, internal/ethapi: fail on eth_call when it times out, fixes #19186 ↵Martin Holst Swende2019-06-242-0/+9
| | | | (#19737)
* p2p/simulations: Enable access to MsgEvents with execadapter (#19749)lash2019-06-211-1/+4
|
* core: move TxPool reorg and events to background goroutine (#19705)Felix Lange2019-06-212-453/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core: move TxPool reorg and events to background goroutine This change moves internal queue re-shuffling work in TxPool to a background goroutine, TxPool.runReorg. Requests to execute runReorg are accumulated by the new scheduleReorgLoop. The new loop also accumulates transaction events. The motivation for this change is making sends to txFeed synchronous instead of sending them in one-off goroutines launched by 'add' and 'promoteExecutables'. If a downstream consumer of txFeed is blocked for a while, reorg requests and events will queue up. * core: remove homestead check in TxPool This change removes tracking of the homestead block number from TxPool. The homestead field was used to enforce minimum gas of 53000 for contract creations after the homestead fork, but not before it. Since nobody would want configure a non-homestead chain nowadays and contract creations usually take more than 53000 gas, the extra correctness is redundant and can be removed. * core: fixes for review comments * core: remove BenchmarkPoolInsert This is useless now because there is no separate code path for individual transactions anymore. * core: fix pending counter metric * core: fix pool tests * core: dedup txpool announced events, discard stales * core: reorg tx promotion/demotion to avoid weird pending gaps
* mobile: fix comment typos (#19741)Martin Holst Swende2019-06-201-1/+1
|
* Merge pull request #19680 from holiman/bootnode_updatePéter Szilágyi2019-06-201-0/+11
|\ | | | | params: add new bootnodes
| * params: add new bootnodesMartin Holst Swende2019-06-071-0/+11
| |
* | Merge pull request #19700 from karalabe/cleanup-graphqlPéter Szilágyi2019-06-209-164/+203
|\ \ | | | | | | cmd, graphql, node: graphql flag polishes, les integration
| * | cmd, graphql, node: graphql flag polishes, les integrationPéter Szilágyi2019-06-209-164/+203
| | |
* | | rpc: fix rare deadlock when canceling HTTP call context (#19715)Felix Lange2019-06-201-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | When cancelling the context for a call on a HTTP-based client while the call is running, the select in requestOp.wait may hit the <-context.Done() case instead of the <-op.resp case. This doesn't happen often -- our cancel test hasn't caught this even though it ran thousands of times on CI since the RPC client was added. Fixes #19714
* | | miner: don't update pending state when no transactions are added (#19734)Martin Holst Swende2019-06-191-1/+10
| | | | | | | | | | | | | | | | | | * miner: don't update pending state when no transactions are added * miner: avoid transaction processing when pending block is already full
* | | clef: fix stutter in warning message (#19736)Guillaume Ballet2019-06-191-1/+1
| | |
* | | Merge pull request #19732 from karalabe/simulated-eip155Péter Szilágyi2019-06-181-1/+1
|\ \ \ | | | | | | | | accounts/abi/bind/backends: use EIP155 on the simulated chain
| * | | accounts/abi/bind/backends: use EIP155 on the simulated chainPéter Szilágyi2019-06-181-1/+1
|/ / /
* | | Merge pull request #19731 from holiman/fix_19707Péter Szilágyi2019-06-181-3/+3
|\ \ \ | | | | | | | | accounts/keystore: fix #19707, avoid keyword as variable name
| * | | accounts/keystore: fix #19707, avoid keyword as variable nameMartin Holst Swende2019-06-181-3/+3
|/ / /
* | | Merge pull request #19725 from karalabe/goroutine-metricsPéter Szilágyi2019-06-171-21/+21
|\ \ \ | | | | | | | | metrics: gather and export threads and goroutines
| * | | metrics: gather and export threads and goroutinesPéter Szilágyi2019-06-171-21/+21
|/ / /
* | | appveyor: bump to Go 1.12.6 (#19709)Samuel Marks2019-06-143-7/+7
| | | | | | | | | | | | | | | | | | * appveyor: bump to Go 1.12.6 * vendor/vendor.json: govendor fetch github.com/karalabe/usb/^
* | | README.md: update formatting (#19532)Giulio2019-06-131-152/+186
| | |
* | | p2p: add more info to peer addition and removal logs (#19712)Felix Lange2019-06-131-2/+2
| | |
* | | les: reject client if it makes too many invalid requests (#19691)gary rong2019-06-123-14/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * les: reject client connection if it makes too much invalid req * les: address comments * les: use uint32 * les: fix variable name * les: add invalid counter for duplicate invalid req
* | | accounts/abi/bind: rename NewKeystoreTransactor (#19703)Marius van der Wijden2019-06-121-2/+2
| | | | | | | | | | | | renamed NewKeyStoreFromTransactor to NewKeystoreTransactor fixed godoc
* | | Merge pull request #19701 from holiman/fixlesPéter Szilágyi2019-06-121-0/+4
|\ \ \ | | | | | | | | les/handler: avoid lookup missing state
| * | | les/handler: avoid lookup missing stateMartin Holst Swende2019-06-121-0/+4
| | | |
* | | | Merge pull request #19702 from karalabe/txprop-stricter-limitingPéter Szilágyi2019-06-121-0/+24
|\ \ \ \ | |/ / / |/| | | eth: enforce stricter known limits on idle peers
| * | | eth: enforce stricter known limits on idle peersPéter Szilágyi2019-06-121-0/+24
|/ / /
* | | core/types: document RawSignatureValues (#19695)Felix Lange2019-06-121-1/+3
| | |
* | | dashboard: update yarn.lock (#19697)Kurkó Mihály2019-06-122-2923/+3378
|/ /
* | ethclient, internal/ethapi: add support for EIP-695 (eth_chainId) (#19694)Felix Lange2019-06-113-0/+31
| | | | | | | | EIP-695 was written in 2017. Parity and Infura have support for this method and we should, too.
* | p2p: enforce connection retry limit on server side (#19684)Felix Lange2019-06-119-294/+520
| | | | | | | | | | | | | | | | | | The dialer limits itself to one attempt every 30s. Apply the same limit in Server and reject peers which try to connect too eagerly. The check against the limit happens right after accepting the connection. Further changes in this commit ensure we pass the Server logger down to Peer instances, discovery and dialState. Unit test logging now works in all Server tests.
* | eth, les: reject stale request (#19689)gary rong2019-06-115-2/+90
| | | | | | | | | | | | * eth, les: reject stale request * les: reuse local head number
* | Merge pull request #19692 from karalabe/metrics-extensionsPéter Szilágyi2019-06-1115-117/+341
|\ \ | | | | | | core, ethdb, metrics, p2p: expose various counter metrics for grafana
| * | core, ethdb, metrics, p2p: expose various counter metrics for grafanaPéter Szilágyi2019-06-1115-117/+341
|/ /
* | core/rawdb: avoid O_APPEND (#19676)Frank Szendzielarz2019-06-101-24/+62
| | | | | | | | | | | | | | | | * Fix file system access for Windows * Encapsulate file accesses * Style fixes
* | accounts: added transactorFromKeyStore (#19685)Marius van der Wijden2019-06-081-0/+19
| |
* | vendor: remove unused dependencies (#19683)Felix Lange2019-06-07141-25571/+0
| | | | | | | | | | | | | | | | | | | | * vendor: remove unused dependencies These were used by swarm code, which has now migrated to its own repository. * travis.yml: remove sudo requirement for test builders These needed sudo to run FUSE tests for swarm.
* | p2p/enode: improve IPv6 support, add ENR text representation (#19663)Felix Lange2019-06-0720-219/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p/enr: add entries for for IPv4/IPv6 separation This adds entry types for "ip6", "udp6", "tcp6" keys. The IP type stays around because removing it would break a lot of code and force everyone to care about the distinction. * p2p/enode: track IPv4 and IPv6 address separately LocalNode predicts the local node's UDP endpoint and updates the record. This change makes it predict IPv4 and IPv6 endpoints separately since they can now be in the record at the same time. * p2p/enode: implement base64 text format * all: switch to enode.Parse(...) This allows passing base64-encoded node records to all the places that previously accepted enode:// URLs. The URL format is still supported. * cmd/bootnode, p2p: log node URL instead of ENR ...and return the base64 record in NodeInfo.
* | cmd/devp2p: add devp2p debug tool (#19657)Felix Lange2019-06-076-8/+446
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p/discover: export Ping and RequestENR These two are useful for checking the status of a node. * cmd/devp2p: add devp2p debug tool This is a new tool for debugging p2p issues. It supports a few basic tasks for now, but many more things can and will be added in the near future. devp2p enrdump -- prints ENRs readably devp2p discv4 ping -- checks if a node is up devp2p discv4 requestenr -- gets a node's record devp2p discv4 resolve -- finds a node through the DHT
* | accounts/scwallet: Disable macos support (#19679)Guillaume Ballet2019-06-073-5/+40
| |
* | Merge pull request #19681 from karalabe/fix-libusb-dockerPéter Szilágyi2019-06-074-4/+14
|\ \ | |/ |/| vendor: pull in USB fix for docker (alpine/musl)
| * vendor: pull in USB fix for docker (alpine/musl)Péter Szilágyi2019-06-074-4/+14
|/
* SECURITY.md: create security policy (#19666)Ethan Heilman2019-06-061-0/+120
| | | | | Github has started supporting SECURITY.md to contain a project's security policy. Adding this information to the repository makes it easier to determine how to disclosure a vulnerability as SECURITY.md becomes a standard. The pgp fingerprint and key is taken from bounty.ethereum.org.
* Merge pull request #19674 from karalabe/usb-ios-fixupPéter Szilágyi2019-06-066-28/+31
|\ | | | | vendor: pull fixed usb library for nocgo builds
| * vendor: pull fixed usb library for nocgo buildsPéter Szilágyi2019-06-066-28/+31
| |
* | eth: check for DefaultConfig.NetworkId in test (#17599)Nguyen Kien Trung2019-06-061-1/+1
|/ | | This makes the test work if NetworkId is changed in forks of go-ethereum.
* Merge pull request #19671 from holiman/usbfixPéter Szilágyi2019-06-051-1/+11
|\ | | | | account/usbwallet: abort usb enumeration after failures
| * account/usbwallet: abort usb enumeration after failuresMartin Holst Swende2019-06-051-1/+11
| |
* | cmd/clef: enable smartcard hub (#19649)Guillaume Ballet2019-06-053-3/+27
| | | | | | | | | | | | * cmd/clef: Enable smartcard hub * clef: don't error is pcsc is not installed
* | cmd: Add retesteth command (to support execution and generation of tests via ↵ledgerwatch2019-06-053-0/+1038
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | retesteth) (#19631) * Add retesteth command * Remove label and insert full version * mineBlock - break the inner loop when the block is full * Fixes for touched non-reward accounts, gas limit issues * Not fail when SendTx has transaction with incorrect RLP * Fix linter (unnecessary conversion) * retesteth: add usage string to flag
* | eth/downloader: make syncing error more obvious (#19413)gary rong2019-06-053-42/+45
|/
* cmd/utils: close quote (#19665)Martin Holst Swende2019-06-051-1/+1
|
* accounts/scwallet: don't error when pcsc socket is missing (#19662)Guillaume Ballet2019-06-041-1/+1
| | | | | | | | * scwallet: don't error when pcsc socket is missing * review feedback * more review feedback
* Merge pull request #19588 from gballet/trezor-fix-ownlibPéter Szilágyi2019-06-04122-16318/+20971
|\ | | | | accounts/usbwallet: add webusb trezor support
| * accounts/usbwallet, vendor: switch from HID to generic USB libPéter Szilágyi2019-06-0492-7799/+7479
| |
| * accounts/usbwallet: recreate Trezor protocol, support old and newPéter Szilágyi2019-06-0335-9067/+13631
| |
| * accounts/usbwallet: support webusb for Trezor walletsGuillaume Ballet2019-06-0312-34/+443
| |
* | swarm: code cleanup, move to ethersphere/swarm (#19661)Rafael Matias2019-06-04361-87054/+22
| |
* | ethclient: ensure tx json is not nil before accessing it (#19653)Dmitry Shulyak2019-06-032-6/+25
| | | | | | | | TransactionInBlock crashed if json was nil and there was an error because it tried to access fields `From` and `BlockHash` of the nil object.
* | core/signer, clef: improve ui-test flow, fix errors in uint handling (#19584)Martin Holst Swende2019-06-0327-557/+1326
|/ | | | | | | | * core/signer, clef: improve ui-test flow, fix errors in uint handling for eip-712 * core/signer: add fuzzer testcases + crashfixes * signer: address review concerns, check sign in integer parsing
* accounts/scwallet: flag to specify path to smartcard daemon (#19439)Guillaume Ballet2019-05-3112-17/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | * accounts/scwallet: Add a switch to enable smartcard support * accounts: change the meaning of the switch * disable card support in windows until tested * only activate account if pcscd socket file is present * the switch is now the path to the socket file * accounts/scwallet: holiman's review feedback * accounts/scwallet: send the path to go-pcsclite * accounts/scwallet: add default, per platform path * accounts/scwallet: fix error log warning * accounts/scwallet: update pcsc lib to latest * accounts/scwallet: use default path from pcsclite * scwallet: forgot to change switch name * cmd: minor style cleanups (error handling first, then happy path)
* swarm/storage: set false, only when we get a chunk back (#19599)Anton Evangelatov2019-05-313-7/+54
|
* les: short circuit in the unregister if peer is not registered (#19644)gary rong2019-05-311-0/+4
|
* les, les/flowcontrol: implement LES/3 (#19329)Felföldi Zsolt2019-05-3122-608/+1533
| | | les, les/flowcontrol: implement LES/3
* github: update code owners (#19638)Adam Schmideg2019-05-301-5/+10
| | | | | | | | * Update codeowners * Add karalabe to clique * remove codeowner for consensus/clique
* swarm/api/http: fix bzz-hash to return ens resolved hash directly (#19594)Elad2019-05-291-11/+11
|
* swarm/api: update mission statement (#19612)Rafael Matias2019-05-292-6/+6
|
* accounts/scwallet: change sc url scheme to keycard (#19632)Guillaume Ballet2019-05-292-11/+11
|
* crypto/bn256/cloudflare: fix comments to describe the updated curve ↵Antoine Rondelet2019-05-282-2/+5
| | | | | | | | | | parameters (#19577) * Removed comment section referring to Cloudflare's bn curve parameters * Added comment to clarify the nature of the parameters * Changed value of xi to i+9
* cmd/abigen: allow using `abigen --pkg` flag with standard input (#19207)Vitaly Bogdanov2019-05-281-8/+3
|
* Merge pull request #19630 from karalabe/fix-commit-stringsPéter Szilágyi2019-05-271-2/+2
|\ | | | | internal/build: fix Travis and AppVeyor commit string injection
| * internal/build: fix Travis and AppVeyor commit string injectionPéter Szilágyi2019-05-271-2/+2
|/
* Merge pull request #19629 from karalabe/duktape-2.3.0Péter Szilágyi2019-05-2717-2398/+4238
|\ | | | | vendor: update go-duktape to v2.3.0
| * vendor: update go-duktape to v2.3.0Péter Szilágyi2019-05-2717-2398/+4238
| |
* | Merge pull request #19524 from gballet/scwallet-puk-countPéter Szilágyi2019-05-271-9/+18
|\ \ | |/ |/| accounts/scwallet: Display PUK retry count
| * accounts/scwallet: fix public key confirmation regressionPéter Szilágyi2019-05-271-8/+6
| |
| * accounts/scwallet: display PUK retry count, validate PIN/PUK lengthGuillaume Ballet2019-05-271-1/+12
|/
* core: concurrent database reinit from freezer dumpPéter Szilágyi2019-05-275-45/+171
| | | | | | | | * core: reinit chain from freezer in batches * core/rawdb: concurrent database reinit from freezer dump * core/rawdb: reinit from freezer in sequential order
* accounts/keystore: enable fallback for darwin,!cgo (#19614)Jeremy Schlatter2019-05-272-2/+2
| | | | Without this, accounts/keystore fails to build for Darwin with CGO_ENABLED=0.
* Merge pull request #19628 from karalabe/nofreeze-genesisPéter Szilágyi2019-05-271-4/+10
|\ | | | | core/rawdb: keep genesis in key-value store for full sync too
| * core/rawdb: keep genesis in key-value store for full sync tooPéter Szilágyi2019-05-271-4/+10
|/
* core: never delete genesis block (#19617)gary rong2019-05-271-4/+10
|
* eth, les: reject light client connection is server is not synced (#19616)gary rong2019-05-278-31/+71
| | | | | | | | * eth, les: reject light client connection is server is not synced * eth, les: rename function and variables * les: format
* accounts/usbwallet: enable the Nano X and upcoming Ledger IDs (#19623)Péter Szilágyi2019-05-261-1/+14
|
* accounts, p2p, rpc: make CGO_ENABLED=0 build again (#19593)Martin Holst Swende2019-05-266-34/+71
| | | | | | | | | | * p2p: remove direct import of cgo-library * accounts, rpc: more nocgo alternatives * rpc: move unix path constant into separate file * accounts/scwallet: address review concerns, remove copy-pasta
* crypto/bn256/cloudflare: checks for nil pointers in Marshal functions (#19609)Antoine Rondelet2019-05-261-0/+9
| | | | | | * Added checks for nil pointers in Marshal functions * Set nil pointer to identity in GT before marshaling
* core/state: unified function receiver names (#19615)Mohanson2019-05-261-118/+118
|
* tests: make transaction tests run again, fix #19033 (#19529)Martin Holst Swende2019-05-213-204/+85
| | | | | | * tests: make transaction tests run again, fix #19033 * tests: refactor transaction tests
* log: do not pad values longer than 40 characters (#19592)Nikifor Seryakov2019-05-201-6/+7
| | | | | | * log: Do not pad too long values * log: gofmt
* build: fix Launchpad typo (#19597)Nikita Kryuchkov2019-05-201-4/+4
|
* les: avoid fetcher deadlock on requestChn (#19571)Felföldi Zsolt2019-05-181-15/+14
| | | * les: avoid fetcher deadlock on requestChn
* accounts/abi: fix TestUnpackMethodIntoMap (#19484)manlio2019-05-171-1/+1
|
* swarm/version: v0.4.1 unstable (#19587)Anton Evangelatov2019-05-171-4/+4
|
* swarm/version: v0.4.0 stable (#19586)Anton Evangelatov2019-05-171-4/+4
|
* Merge pull request #19591 from karalabe/64bit-alignPéter Szilágyi2019-05-173-5/+17
|\ | | | | core/rawdb, eth/downloader: align 64bit atomic fields
| * core/rawdb, eth/downloader: align 64bit atomic fieldsPéter Szilágyi2019-05-173-5/+17
| |
* | build: disable swarm packages (#19585)Anton Evangelatov2019-05-171-34/+4
|/ | | | | | | | * build: disable swarm packages * build: remove allCrossCompiledArchiveFiles; inline allToolsArchiveFiles * build: get rid of some superfluous comments
* Merge pull request #19244 from karalabe/freezer-2Péter Szilágyi2019-05-1754-458/+3748
|\ | | | | cmd, core, eth, les, node: chain freezer on top of db rework
| * cmd/geth, core/rawdb: seamless freezer consistency, friendly removedbPéter Szilágyi2019-05-1610-312/+121
| |
| * cosensus, core, eth, params, trie: fixes + clique history capPéter Szilágyi2019-05-1612-53/+112
| |
| * core, cmd, vendor: fixes and database inspection tool (#15)gary rong2019-05-1629-248/+1287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core, eth: some fixes for freezer * vendor, core/rawdb, cmd/geth: add db inspector * core, cmd/utils: check ancient store path forceily * cmd/geth, common, core/rawdb: a few fixes * cmd/geth: support windows file rename and fix rename error * core: support ancient plugin * core, cmd: streaming file copy * cmd, consensus, core, tests: keep genesis in leveldb * core: write txlookup during ancient init * core: bump database version
| * freezer: disable compression on hashes and difficulties (#14)Martin Holst Swende2019-05-163-5/+15
| | | | | | | | | | | | | | | | * freezer: disable compression on hashes and difficulties * core/rawdb: address review concerns * core/rawdb: address review concerns
| * core/rawdb: support starting offset for future deletionMartin Holst Swende2019-05-162-30/+175
| |
| * all: integrate the freezer with fast syncgary rong2019-05-1626-318/+1068
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * all: freezer style syncing core, eth, les, light: clean up freezer relative APIs core, eth, les, trie, ethdb, light: clean a bit core, eth, les, light: add unit tests core, light: rewrite setHead function core, eth: fix downloader unit tests core: add receipt chain insertion test core: use constant instead of hardcoding table name core: fix rollback core: fix setHead core/rawdb: remove canonical block first and then iterate side chain core/rawdb, ethdb: add hasAncient interface eth/downloader: calculate ancient limit via cht first core, eth, ethdb: lots of fixes * eth/downloader: print ancient disable log only for fast sync
| * core/rawdb: add file lock for freezerrjl4934564422019-05-163-5/+43
| |
| * freezer: implement split files for dataMartin Holst Swende2019-05-162-95/+815
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * freezer: implement split files for data * freezer: add tests * freezer: close old head-file when opening next * freezer: fix truncation * freezer: more testing around close/open * rawdb/freezer: address review concerns * freezer: fix minor review concerns * freezer: fix remaining concerns + testcases around truncation * freezer: docs * freezer: implement multithreading * core/rawdb: fix freezer nitpicks + change offsets to uint32 * freezer: preopen files, simplify lock constructs * freezer: delete files during truncation
| * cmd, core, eth, les, node: chain freezer on top of db reworkPéter Szilágyi2019-05-1615-35/+755
| |
* | swarm/network: bump network id for 0.4 release (#19580)Anton Evangelatov2019-05-165-10/+42
| | | | | | | | | | | | | | | | | | | | * swarm/network: bump network id for 0.4 release * swarm/network: bump bzz protocol version * swarm/docs: migration document v0.3 to v0.4 * swarm/storage/feed: gofmt lookup_test.go
* | swarm/feeds: Parallel feed lookups (#19414)Javier Peletier2019-05-1614-342/+952
|/
* accounts,signer: better support for EIP-191 intended validator (#19523)Martin Holst Swende2019-05-162-8/+22
|
* p2p/discover: fix crash in Resolve (#19579)Felix Lange2019-05-151-3/+3
|
* swarm/storage: disable open tracing on indices (#19578)Anton Evangelatov2019-05-152-29/+0
|
* swarm/metrics: collect metrics on datadir disk usage (#19576)Anton Evangelatov2019-05-151-0/+31
|
* p2p/discover: add support for EIP-868 (v4 ENR extension) (#19540)Felix Lange2019-05-156-136/+406
| | | | | | | | This change implements EIP-868. The UDPv4 transport announces support for the extension in ping/pong and handles enrRequest messages. There are two uses of the extension: If a remote node announces support for EIP-868 in their pong, node revalidation pulls the node's record. The Resolve method requests the record unconditionally.
* rlp: fixes for two corner cases and documentation (#19527)Felix Lange2019-05-145-57/+111
| | | | | | | | | | These changes fix two corner cases related to internal handling of types in package rlp: The "tail" struct tag can only be applied to the last field. The check for this was wrong and didn't allow for private fields after the field with the tag. Unsupported types (e.g. structs containing int) which implement either the Encoder or Decoder interface but not both couldn't be encoded/decoded. Also fixes #19367
* accounts/abi: fix documentation (#19568)Jeremy Schlatter2019-05-141-2/+2
|
* Merge pull request #19563 from karalabe/faucet-remove-g+-mentionPéter Szilágyi2019-05-132-16/+54
|\ | | | | cmd/faucet: remove Google+ mention from web assets too
| * cmd/faucet: remove Google+ mention from web assets tooPéter Szilágyi2019-05-132-16/+54
| |
* | core, eth, trie: bloom filter for trie node dedup during fast sync (#19489)Péter Szilágyi2019-05-1346-57/+2668
|/ | | | | | | | | | | | * core, eth, trie: bloom filter for trie node dedup during fast sync * eth/downloader, trie: address review comments * core, ethdb, trie: restart fast-sync bloom construction now and again * eth/downloader: initialize fast sync bloom on startup * eth: reenable eth/62 until we properly remove it
* les, light: implement ODR transaction lookup by hash (#19069)Felföldi Zsolt2019-05-1316-51/+182
| | | | | | | | | | | | * les, light: implement ODR transaction lookup by hash * les: delete useless file * internal/ethapi: always use backend to find transaction * les, eth, internal/ethapi: renamed GetCanonicalTransaction to GetTransaction * light: add canonical header verification to GetTransaction
* les: fixed cost table update (#19546)Felföldi Zsolt2019-05-133-8/+13
|
* core: fix formatting error (trailing whitepace)Péter Szilágyi2019-05-131-1/+1
|
* Merge pull request #19562 from holiman/fix_tabcrashPéter Szilágyi2019-05-133-1/+2
|\ | | | | p2p/discover: fix nil-dereference due to race
| * p2p/discover: fix a race where table loop would self-lookup before returning ↵Martin Holst Swende2019-05-133-1/+2
| | | | | | | | from constructor
* | core: move error variable to error.go (#19560)PilkyuJung2019-05-132-3/+4
| | | | | | | | | | | | | | | | * move error variable to error.go * Update error.go Edit "Genesis" to "genesis"
* | cmd/swarm: skip export test on windows builds (#19555)Elad2019-05-132-2/+6
| |
* | swarm/metrics: track runtime metrics (#19557)Anton Evangelatov2019-05-131-1/+5
| |
* | swarm/network/stream: add pure retrieval test (#19552)holisticode2019-05-111-55/+218
| |
* | core: fix import errors on clique crashes + empty blocks (#19544)Péter Szilágyi2019-05-103-2/+160
| | | | | | | | | | | | | | | | | | | | * core: fix import errors on clique crashes + empty blocks * cosensus/clique, core: add test for the mirrored state issue * core: address todo question wrt log count * core: raise a louder warning for non-clique known blocks
* | Merge pull request #19550 from ethersphere/swarm-rather-stablePéter Szilágyi2019-05-10112-5130/+5741
|\ \ | | | | | | swarm v0.4-rc1
| * | swarm/network: update syncer metricsElad2019-05-101-4/+3
| | |
| * | swarm/network: measure addPeer and deletePeer to know if Kad rearrangedAnton Evangelatov2019-05-106-25/+3
| | | | | | | | | | | | | | | | | | | | | | | | swarm/storage: remove traces for put/get/set (#1389) * swarm/storage: remove traces for put/get/set * swarm/storage: remove Has traces
| * | swarm: instrument setNextBatchElad2019-05-105-12/+37
| | | | | | | | | | | | swarm/storage/localstore: add gc metrics, disable flaky test
| * | swarm/storage: improve instrumentationAnton Evangelatov2019-05-106-40/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | swarm/storage/localstore: fix broken metric (#1373) p2p/protocols: count different messages (#1374) cmd/swarm: disable snapshot create test due to constant flakes (#1376) swarm/network: remove redundant goroutine (#1377)
| * | swarm/pss: disable failing handshake testlash2019-05-101-0/+1
| | |
| * | swarm-smoke: add syncDelay flagAnton Evangelatov2019-05-105-12/+40
| | | | | | | | | | | | | | | | | | swarm/network: add want delay timer to syncing (#1367) swarm/network: synchronise peer.close() (#1369)
| * | swarm: push tags integration - request flowElad2019-05-1034-362/+699
| | | | | | | | | | | | | | | | | | swarm/api: integrate tags to count chunks being split and stored swarm/api/http: integrate tags in middleware for HTTP `POST` calls and assert chunks being calculated and counted correctly swarm: remove deprecated and unused code, add swarm hash to DoneSplit signature, remove calls to the api client from the http package
| * | swarm/network: update syncingJanoš Guljaš2019-05-1010-486/+707
| | |
| * | swarm/chunk: add tags data typeElad2019-05-105-0/+604
| | | | | | | | | | | | * swarm/chunk: add tags backend to chunk package
| * | cmd/swarm-smoke: check if chunks are at most prox hostAnton Evangelatov2019-05-102-7/+101
| | | | | | | | | | | | swarm/network: measure how many chunks a node delivers (#1358)
| * | p2p/protocols, swarm/network: fix resource leak with p2p teardownElad2019-05-104-19/+28
| | |
| * | swarm: LocalStore metricsJanoš Guljaš2019-05-1010-47/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/shed: remove metrics fields from DB struct * swarm/schunk: add String methods to modes * swarm/storage/localstore: add metrics and traces * swarm/chunk: unknown modes without spaces in String methods * swarm/storage/localstore: remove bin number from pull subscription metrics * swarm/storage/localstore: add resetting time metrics and code improvements
| * | swarm/storage/localstore: fix export db.Put signatureAnton Evangelatov2019-05-1028-659/+374
| | | | | | | | | | | | | | | | | | | | | | | | cmd/swarm/swarm-smoke: improve smoke tests (#1337) swarm/network: remove dead code (#1339) swarm/network: remove FetchStore and SyncChunkStore in favor of NetStore (#1342)
| * | cmd/swarm, swarm: LocalStore storage integrationJanoš Guljaš2019-05-1062-3674/+3092
|/ /
* | Merge pull request #19539 from karalabe/faucet-updatesPéter Szilágyi2019-05-091-37/+12
|\ \ | | | | | | cmd/faucet: embed git commit hash/date, disable Google+
| * | cmd/faucet: sunset Google+ authenticationPéter Szilágyi2019-05-081-36/+6
| | |
| * | cmd/faucet: embed git commit hash and date into the versionPéter Szilágyi2019-05-081-1/+6
|/ /
* | cmd, internal/build, docker: advertise commit date in unstable build ↵C. Brown2019-05-0817-38/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | versions (#19522) * add-date-to unstable * fields-insteadof-split * internal/build: support building with missing git * docker: add git history back to support commit date in version * internal/build: use PR commits hashes for PR builds
* | core: handle importing known blocks more gracefully (#19417)gary rong2019-05-082-125/+303
| | | | | | | | | | | | | | | | | | | | * core: import known blocks if they can be inserted as canonical blocks * core: insert knowns blocks * core: remove useless * core: doesn't process head block in reorg function
* | Merge pull request #19534 from karalabe/downloader-delay-fixPéter Szilágyi2019-05-081-0/+7
|\ \ | | | | | | eth/downloader: fix header delays during chain dedup
| * | eth/downloader: fix header delays during chain dedupPéter Szilágyi2019-05-071-0/+7
| | |
* | | appveyor: Upgrade Go to v1.12.5 (#19536)Samuel Marks2019-05-081-2/+2
| | |
* | | accounts/usbwallet: fix a comment typo in trezor driver (#19535)Guillaume Ballet2019-05-081-1/+1
|/ /
* | accounts, cmd, internal, signer: add note about backing up the keystore (#19432)Kurkó Mihály2019-05-075-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | * accounts: add note about backing up the keystore * cmd, accounts: move the printout to accountCreate * internal, signer: add info when new account is created via rpc * cmd, internal, signer: split logs * cmd/geth: make account new output a bit more verbose
* | core: fix canonicality confusion (#19514)Martin Holst Swende2019-05-072-1/+130
| | | | | | | | | | | | * core: add tests for canonicality confusion * core: delete stale future canon number mappings during reorg to shorter+heavier chain
* | trie: clarify why verifyProof doesn't check hashes (#19530)gary rong2019-05-071-2/+3
|/ | | | | | | | * trie: fix merkle proof * trie: use hasher instead of allocate keccack256 every time * trie: add comments
* core/rawdb: fix typo (#19526)유용환2019-05-041-2/+2
|
* Merge pull request #19513 from fjl/p2p-discover-split-v4Péter Szilágyi2019-05-028-700/+746
|\ | | | | p2p/discover: split out discv4 code
| * p2p/discover: split out discv4 codeFelix Lange2019-04-307-700/+700
| | | | | | | | | | | | | | | | | | | | | | | | | | This change restructures the internals of p2p/discover to make room for the discv5 code which will soon be added to this package. - packet type names now have a "V4" suffix. - ListenUDP returns *UDPv4 instead of *Table. This technically breaks the API but the only caller in go-ethereum is package p2p, which uses a compatible interface and doesn't need changes. - The internal transport interface is changed to make Table reusable for v5. - The 'lookup' code moves from table to transport. This required updating the lookup unit test to use udpTest instead of a custom transport.
| * internal/testlog: add logger for unit testsFelix Lange2019-04-301-0/+46
| |
* | eth, les: add error when accessing missing block state (#18346)Martin Holst Swende2019-05-023-2/+161
| | | | | | | | | | | | This change makes getBalance, getCode, getStorageAt, getProof, call, getTransactionCount return an error if the block number in the request doesn't exist. getHeaderByNumber still returns null for missing headers.
* | consensus,core,miner: avoid overhead of creating a new block (#19301)Martin Holst Swende2019-04-306-8/+33
| | | | | | | | | | | | | | | | * consensus,core,miner: avoid overhead of creating a new block * consensus: nitpick dot * consensus: fix some comment formatting nits
* | Merge pull request #19500 from karalabe/cht-txpool-open-limitPéter Szilágyi2019-04-302-6/+32
|\ \ | | | | | | eth: enforce chain above CHT before accepting txs into the pool
| * | eth: enforce chain above CHT before accepting txs into the poolPéter Szilágyi2019-04-262-6/+32
| | |
* | | internal/ethapi: estimate gas usage automatically (#19508)gary rong2019-04-301-8/+25
| |/ |/|
* | core/rawdb: typo fix storea => stores (#19498)Hongbin Mao2019-04-261-1/+1
|/ | | | | | * typo fix * change to stores
* swarm/network: fix data races in TestInitialPeersMsg test (#19490)Janoš Guljaš2019-04-266-10/+37
| | | | | | | | | | | | | | | | | | | | | | | | * swarm/network: fix data races in TestInitialPeersMsg test * swarm/network: add Kademlia.Saturation method with lock * swarm/network: add Hive.Peer method to safely retrieve a bzz peer * swarm/network: remove duplicate comment * p2p/testing: prevent goroutine leak in ProtocolTester * swarm/network: fix data race in newBzzBaseTesterWithAddrs * swarm/network: fix goroutone leaks in testInitialPeersMsg * swarm/network: raise number of peer check attempts in testInitialPeersMsg * swarm/network: use Hive.Peer in Hive.PeerInfo function * swarm/network: reduce the scope of mutex lock in newBzzBaseTesterWithAddrs * swarm/storage: disable TestCleanIndex with race detector
* Merge pull request #19497 from karalabe/peers-50Péter Szilágyi2019-04-252-3/+3
|\ | | | | cmd/utils, node: switch over default peer count to 50
| * cmd/utils, node: switch over default peer count to 50Péter Szilágyi2019-04-252-3/+3
| |
* | core: lookup txs by block number instead of block hash (#19431)Matthew Halpern2019-04-253-68/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core: lookup txs by block number instead of block hash Transaction hashes now store a reference to their corresponding block number as opposed to their hash. In benchmarks this was shown to reduce storage by over 12 GB. The main limitation of this approach is that transactions on non-canonical blocks could never be looked up, however that is currently not supported. The database version has been upgraded to version 5 and the transaction lookup process is backwards-compatible with the prior two transaction lookup formats prexisting in the database instance. Tests have been added to ensure this. * core/rawdb: tiny review nit fixes
* | Merge pull request #19438 from karalabe/ledger-new-derivation-pathPéter Szilágyi2019-04-258-137/+167
|\ \ | |/ |/| accounts: switch Ledger derivation path to canonical one
| * accounts: switch Ledger derivation path to canonical onePéter Szilágyi2019-04-108-130/+163
| |
| * Revert "Can now specify the number of empty accounts to derive"Péter Szilágyi2019-04-101-10/+7
| | | | | | | | This reverts commit 5b30aa59d63fcb7ef8111ec89a6f06509b5ce687.
* | eth/downloader: enable unsync-protection for light client (#19496)gary rong2019-04-252-3/+3
| | | | | | | | | | | | * eth/downloader: enable unsync-protection for light client * eth/downloader: fix tests
* | miner: polish miner configuration (#19480)gary rong2019-04-2311-162/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | * cmd, eth, miner: disable advance sealing if user require * cmd, console, miner, les, eth: wrap the miner config * eth: remove todo * cmd, miner: revert noadvance flag The reason for this is: if the transaction execution is even longer than block time, then this kind of transactions is DoS attack.
* | swarm/pss: Fix flaky TestProxNetwork (#19471)gluk2562019-04-193-187/+181
| |
* | Merge pull request #18168 from karalabe/trie-better-cache-size-estimationPéter Szilágyi2019-04-183-15/+59
|\ \ | | | | | | trie: approximate the wasted cache metaspace closer
| * | cmd: special case default cache allowance (4GB mainnet, 128MB ligh)Péter Szilágyi2019-04-122-1/+15
| | |
| * | trie: approximate the wasted cache metaspace closerPéter Szilágyi2019-04-121-14/+44
| | |
* | | p2p: fix typo in dialstate comment (#19476)Guillaume Ballet2019-04-181-1/+1
| | |
* | | swarm/version: bump version due to Geth hotfix releasePéter Szilágyi2019-04-171-1/+1
| | |
* | | Merge pull request #19468 from karalabe/enforce-fastsync-checkpointsPéter Szilágyi2019-04-1711-115/+211
|\ \ \ | | | | | | | | eth, les, light: enforce CHT checkpoints on fast-sync too
| * | | eth, les, light: enforce CHT checkpoints on fast-sync tooPéter Szilágyi2019-04-1711-115/+211
| | | |
* | | | les: fix p2p.Protocol.PeerInfo (#19472)Felföldi Zsolt2019-04-171-1/+1
| | | |
* | | | Merge pull request #19470 from SamuelMarks/go1.12.4Péter Szilágyi2019-04-161-2/+2
|\ \ \ \ | | | | | | | | | | appveyor.yml: Upgraded to Go 1.12.4
| * | | | appveyor.yml: Upgraded to Go 1.12.4Samuel Marks2019-04-161-2/+2
|/ / / /
* / / / les: check required message types in cost table (#19454)Felföldi Zsolt2019-04-162-5/+20
|/ / /
* | | Merge pull request #19345 from Matthalp/optimize-receipt-storagePéter Szilágyi2019-04-1620-152/+558
|\ \ \ | | | | | | | | core, eth, les, light: avoid storing computable receipt metadata
| * | | core/types: fix cummulative gas bug and legacy decoding testsgary rong2019-04-162-22/+36
| | | |
| * | | core, eth, les, light: scope receipt functionality a bit cleanerPéter Szilágyi2019-04-1516-287/+250
| | | |
| * | | core, eth, les, light: store transaction receipts without txHash and gasCostMatthew Halpern2019-04-1511-123/+552
| |/ /
* / / swarm/storage/feed: add context handling/cancellation to Swarm Feeds lookup, ↵Javier Peletier2019-04-163-24/+132
|/ / | | | | | | | | | | | | | | | | | | fix bad hint lookup bug (#19353) * swarm/storage/feed/lookup: Add context handling/forwarding * swarm/storage/feed/lookup: Add test to catch bad hint * swarm/storage/feed/lookup: Added context cancellation test
* | node: do not continue if 'signer' is used but connection fails (#19441)Martin Holst Swende2019-04-121-1/+1
| | | | | | This makes geth fails instead of falling back to local keystore, if the command line flag `--signer` is used
* | cmd/clef, signer: make fourbyte its own package, break dep cycle (#19450)Péter Szilágyi2019-04-1217-695/+765
| | | | | | | | | | | | * cmd/clef, signer: make fourbytes its own package, break dep cycle * signer/fourbyte: pull in a sanitized 4byte database
* | cmd/swarm: fix resource leaks in tests (#19443)Ferenc Szabo2019-04-116-66/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/api: fix file descriptor leak in NewTestSwarmServer Swarm storage (localstore) was not closed. That resulted a "too many open files" error if `TestClientUploadDownloadRawEncrypted` was run with `-count 1000`. * cmd/swarm: speed up StartNewNodes() by parallelization Reduce cluster startup time from 13s to 7s. * swarm/api: disable flaky TestClientUploadDownloadRawEncrypted with -race * swarm/storage: disable flaky TestLDBStoreCollectGarbage (-race) With race detection turned on the disabled cases often fail with: "ldbstore_test.go:535: expected surplus chunk 150 to be missing, but got no error" * cmd/swarm: fix process leak in TestACT and TestSwarmUp Each test run we start 3 nodes, but we did not terminate them. So those 3 nodes continued eating up 1.2GB (3.4GB with -race) after test completion. 6b6c4d1c2754f8dd70172ab58d7ee33cf9058c7d changed how we start clusters to speed up tests. The changeset merged together test cases and introduced a global cluster. But "forgot" about termination. Let's get rid of "global cluster" so we have a clear owner of termination (some time sacrifice), while leaving subtests to use the same cluster.
* | cmd/clef: bundle 4byte db into clef, (#19112)Martin Holst Swende2019-04-117-33/+305
| | | | | | | | | | | | | | | | * clef: bundle 4byte db into clef, fix #19048 * clef: add go-generate directive, remove internal abidb parser tool * cmd/clef: extend go generate to format asset file
* | metrics/prometheus: expose metrics in prometheus format too (#17077)Maxim Krasilnikov2019-04-113-0/+185
| | | | | | | | | | | | | | | | | | | | * metrics/prometheus: added prometheus http server and metrics collector * metrics/prometheus: minor cleanups * metrics/prometheus: named keys instead name in tag * metrics/prometheus: minor typo cleanups, sorted report
* | clef: update warning-text (#19442)Martin Holst Swende2019-04-101-4/+7
| | | | | | | | | | | | * clef: update warning-text * Update cmd/clef/main.go
* | swarm/version: bump Swarm due to Geth hotfix releasePéter Szilágyi2019-04-101-1/+1
| |
* | accounts/scwallet: fix card pairing instruction message (#19436)Guillaume Ballet2019-04-101-1/+1
|/
* accounts/scwallet: Update README for v2.2.1 support (#19425)Guillaume Ballet2019-04-101-15/+48
| | | | Update the app download link to the latest version, as requested in #19418
* p2p: remove useless parameter (#19433)ANOTHEL2019-04-102-4/+3
|
* rpc: cancel root context after all requests are served (#19430)gary rong2019-04-101-1/+1
|
* Merge pull request #19426 from karalabe/vendor-fix-freegeoipPéter Szilágyi2019-04-101-5/+0
|\ | | | | vendor: fix some vendor config leftover
| * vendor: fix some vendor config leftoverPéter Szilágyi2019-04-101-5/+0
|/
* vendor: upgrade go-libpcsclite (#19420)Guillaume Ballet2019-04-105-51/+328
| | | | | | * vendor: remove leftover trace * Upgrade go-libpcsclite to the latest version
* Merge pull request #19423 from SamuelMarks/go1.12.3Péter Szilágyi2019-04-091-2/+2
|\ | | | | appveyor.yml: Upgraded to Go 1.12.3
| * appveyor.yml: Upgraded to Go 1.12.3Samuel Marks2019-04-091-2/+2
|/
* accounts:smartcard wallet without the dependency on libpcsclite (#19273)Guillaume Ballet2019-04-0952-9/+37171
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * accounts, core, internal, node: Add support for smartcard wallets * accounts, internal: Changes in response to review * vendor: pull in missing go-echd library * accounts/scwallet, console: user friendly card opening * accounts/scwallet: ordered wallets, tighter events, derivation logs * accounts, console: frendly card errors, support pin unblock * accounts/scwallet: fix crypto API change * accounts/scwallet: rebase and update * Fix some linter issues * Remove the direct dependency on libpcsclite Instead, use a go library that communicates with pcscd over a socket. Also update the changes introduced by @gravityblast since this PR's inception * Temporary fix to the ADBU status call * fix wallet status update This is a temporary fix, better checks need to be performed once the whole process has been validated. * Fix key derivation * Add some documentation * Update a comment to reflect the workings of the updated system * Vendor keycard-go/derivationpath * Formatting fixes * Add instructions on how to install the card * Achieve full transaction signature+sending * PK derivation has to be supported by the card * Fix linter issues * Upgrade to keycard app v2.1.1 * Set gballet as codeowner of the smartcard wallet dir * fix unnecessary condition linter warning * refuse to overwrite the master key of a previously initialized card * refresh the account list when initializing the card * Update the card preparation instructions based on review feedback * 'sanitize' JSON input Co-Authored-By: gballet <gballet@gmail.com> * Apply suggestions from code review Co-Authored-By: gballet <gballet@gmail.com> * fix a serialization error * more review feedback * More review feedback * Can now specify the number of empty accounts to derive * Fix rebase error: include norm package * Update bip-39 ref and remove ebfe/scard from vendor * Add missing dependency
| * Add missing dependencyGuillaume Ballet2019-04-098-0/+14503
| |
| * Update bip-39 ref and remove ebfe/scard from vendorGuillaume Ballet2019-04-0910-2210/+426
| |
| * Fix rebase error: include norm packageGuillaume Ballet2019-04-0812-6/+18525
| |
| * Can now specify the number of empty accounts to deriveGuillaume Ballet2019-04-081-7/+10
| |
| * More review feedbackGuillaume Ballet2019-04-081-0/+5
| |
| * more review feedbackGuillaume Ballet2019-04-082-11/+10
| |
| * fix a serialization errorGuillaume Ballet2019-04-081-1/+3
| |
| * Apply suggestions from code reviewMartin Holst Swende2019-04-081-3/+6
| | | | | | Co-Authored-By: gballet <gballet@gmail.com>
| * 'sanitize' JSON inputMartin Holst Swende2019-04-081-1/+1
| | | | | | Co-Authored-By: gballet <gballet@gmail.com>
| * Update the card preparation instructions based on review feedbackGuillaume Ballet2019-04-081-0/+9
| |
| * refresh the account list when initializing the cardGuillaume Ballet2019-04-081-0/+1
| |
| * refuse to overwrite the master key of a previously initialized cardGuillaume Ballet2019-04-081-3/+15
| |
| * fix unnecessary condition linter warningGuillaume Ballet2019-04-081-1/+1
| |
| * Set gballet as codeowner of the smartcard wallet dirGuillaume Ballet2019-04-081-0/+1
| |
| * Upgrade to keycard app v2.1.1Guillaume Ballet2019-04-082-24/+16
| |
| * Fix linter issuesGuillaume Ballet2019-04-082-17/+13
| |
| * PK derivation has to be supported by the cardGuillaume Ballet2019-04-081-11/+7
| |
| * Achieve full transaction signature+sendingGuillaume Ballet2019-04-081-0/+18
| |
| * Add instructions on how to install the cardGuillaume Ballet2019-04-081-0/+19
| |
| * Formatting fixesGuillaume Ballet2019-04-081-11/+16
| |
| * Vendor keycard-go/derivationpathGuillaume Ballet2019-04-084-0/+612
| |
| * Update a comment to reflect the workings of the updated systemGuillaume Ballet2019-04-082-3/+3
| |
| * Add some documentationGuillaume Ballet2019-04-081-0/+30
| |