Commit Graph

12512 Commits

Author SHA1 Message Date
gary rong
20de87c1bf eth: don't block if transaction broadcast loop fails (#21255)
* eth: don't block if transaction broadcast loop is returned

* eth: kick out peer if we failed to send message

* eth: address comment
2020-08-07 11:22:09 +02:00
Felix Lange
bc23fc13ab crypto/secp256k1: enable 128-bit int code and endomorphism optimization (#21203)
* crypto/secp256k1: enable use of __int128

This speeds up scalar & field calculations a lot.

* crypto/secp256k1: enable endomorphism optimization
2020-08-07 11:21:59 +02:00
Felix Lange
273230e3c5 cmd/devp2p: add commands for node key management (#21202)
These commands mirror the key/URL generation functions of cmd/bootnode.

    $ devp2p key generate mynode.key
    $ devp2p key to-enode mynode.key -ip 203.0.113.21 -tcp 30304
    enode://78a7746089baf4b8615f54a5f0b67b22b1...
2020-08-07 11:21:48 +02:00
Péter Szilágyi
d73075bd3d p2p: measure packet throughput too, not just bandwidth 2020-08-07 11:21:39 +02:00
Guillaume Ballet
d04e4b25c8 common/fdlimit: build on DragonflyBSD (#21241)
* common/fdlimit: build on DragonflyBSD

* review feedback
# Conflicts:
#	go.mod
#	go.sum
2020-08-07 11:21:19 +02:00
AusIV
f14fc201dc core/rawdb: fix high memory usage in freezer (#21243)
The ancients variable in the freezer is a list of hashes, which
identifies all of the hashes to be frozen. The slice is being allocated
with a capacity of `limit`, which is the number of the last block
this batch will attempt to add to the freezer. That means we are
allocating memory for all of the blocks in the freezer, not just
the ones to be added.

If instead we allocate `limit - f.frozen`, we will only allocate
enough space for the blocks we're about to add to the freezer. On
mainnet this reduces usage by about 320 MB.
# Conflicts:
#	core/rawdb/freezer.go
2020-08-07 11:20:23 +02:00
ucwong
c9e176b59d go.mod: update snappy dependency (#21237)
# Conflicts:
#	go.mod
#	go.sum
2020-08-07 11:19:47 +02:00
gary rong
2740fc90d9 cmd, eth, internal, les: add txfee cap (#21212)
* cmd, eth, internal, les: add gasprice cap

* cmd/utils, eth: add default value for gasprice cap

* all: use txfee cap

* cmd, eth: add fix

* cmd, internal: address comments
# Conflicts:
#	les/api_backend.go
2020-08-07 11:18:39 +02:00
zhangsoledad
c16e980e6c core/rawdb: swap tailId and itemOffset for deleted items in freezer (#21220)
* fix(freezer): tailId filenum offset were misplaced

* core/rawdb: assume first item in freezer always start from zero
# Conflicts:
#	core/rawdb/freezer_table.go
#	core/rawdb/freezer_table_test.go
2020-08-07 11:18:24 +02:00
sixdays
287abd928b eth/downloader: don't use defer for unlock before return (#21227)
Co-authored-by: linjing <linjingjing@baidu.com>
2020-08-07 11:17:56 +02:00
HackyMiner
36a0d2f9ef internal/web3ext: add missing params to debug.accountRange (#21208) 2020-08-07 11:17:46 +02:00
Yang Hau
e6056c0acc build, internal/ethapi, crypto/bls12381: fix typos (#21210)
speicifc -> specific
assigened -> assigned
frobenious -> frobenius
2020-08-07 11:17:36 +02:00
gary rong
f5b6ae0da1 core, eth, internal: include read storage entries in structlog output (#21204)
* core, eth, internal: extend structLog tracer

* core/vm, internal: add storage view

* core, internal: add slots to storage directly

* core: remove useless

* core: address martin's comment

* core/vm: fix tests
# Conflicts:
#	core/vm/logger.go
#	core/vm/logger_test.go
2020-08-07 11:17:27 +02:00
Martin Holst Swende
bb5f890c0c eth/downloader: fix spuriously failing tests (#21149)
* eth/downloader tests: fix spurious failing test due to race between receipts/headers

* miner tests: fix travis failure on arm64

* eth/downloader: tests - store td in ancients too
# Conflicts:
#	eth/downloader/downloader_test.go
#	miner/worker_test.go
2020-08-07 11:15:45 +02:00
Natsu Kagami
7034679fd7 accounts/abi: make GetType public again (#21157) 2020-08-07 11:13:20 +02:00
Pau
4be8cfe42c accounts/keystore: fix typo in error message (#21200) 2020-08-07 11:13:12 +02:00
Péter Szilágyi
d25bb87a6f core/state: avoid escape analysis fault when accessing cached state
# Conflicts:
#	core/state/state_object.go
#	core/state/statedb.go
2020-08-07 11:04:56 +02:00
Paweł Bylica
924c03abf9 core/vm: use uint256 in EVM implementation (#20787)
* core/vm: use fixed uint256 library instead of big

* core/vm: remove intpools

* core/vm: upgrade uint256, fixes uint256.NewFromBig

* core/vm: use uint256.Int by value in Stack

* core/vm: upgrade uint256 to v1.0.0

* core/vm: don't preallocate space for 1024 stack items (only 16)

Co-authored-by: Martin Holst Swende <martin@swende.se>
# Conflicts:
#	core/vm/common.go
#	core/vm/contract.go
#	core/vm/eips.go
#	core/vm/evm.go
#	core/vm/gas_table.go
#	core/vm/instructions.go
#	core/vm/instructions_test.go
#	core/vm/interpreter.go
#	core/vm/logger.go
#	core/vm/logger_json.go
#	core/vm/logger_test.go
#	core/vm/stack/stack.go
#	go.mod
#	go.sum
2020-08-07 11:04:19 +02:00
Igor Mandrigin
bbb918ea6c etl: update docs with the correct sort method 2020-08-06 18:22:58 +02:00
ledgerwatch
2f3cc6f62c
Header download spec - first draft (#879)
* header download docs

* Continue

* Fix

* More picture and text

* Push

* More doc

* More docs

* First version of the doc
2020-08-06 15:37:41 +01:00
Igor Mandrigin
715874f060 update version 2020-08-06 14:09:36 +02:00
ucwong
f30682ce7c ethstats: use timer instead of time.sleep (#20924) 2020-08-06 14:08:02 +02:00
libby kent
70112ee9de cmd/ethkey: support --passwordfile in generate command (#21183) 2020-08-06 14:07:43 +02:00
Felix Lange
9df275d7e0 params: begin v1.9.16 release cycle 2020-08-06 14:07:26 +02:00
Hao Duan
1ca4a9263f core: filter out txs with invalid signatures as soon as possible
Once we detect an invalid transaction during recovering signatures, we should
directly exclude this transaction to avoid validating the signatures hereafter.

This should optimize the validations times of transactions with invalid signatures
to only one time.
2020-08-06 14:06:31 +02:00
Igor Mandrigin
d1bf85ddeb add merging thing 2020-08-06 14:05:34 +02:00
Igor Mandrigin
ba9f9ee7dd
Add docs for common/etl (#878)
* ETL readme

* add a link to the explainer

* fixups

* a note on marshaling
2020-08-06 14:02:41 +02:00
Igor Mandrigin
1495979983
etl: only print file sizes for actual files, not RAM (#877) 2020-08-06 09:33:09 +02:00
pk
25ec16f223
Update Readme.md (#876) 2020-08-05 18:29:54 +01:00
Igor Mandrigin
fa89cdefd5
log ETL temp files datasize (#873) 2020-08-05 16:33:58 +01:00
Alex Sharov
f41959f030
drop badger support (#869)
* drop badger support

* rebase master
2020-08-05 16:33:45 +01:00
Alexey Akhunov
b72fae75c9 Fix some snags in stage 6 2020-08-05 11:31:41 +01:00
Alexey Akhunov
11637c4c89 Fix some snags in stage 6 2020-08-05 11:25:57 +01:00
Alex Sharov
d458c4cc1e
Migrations: use stage name as db key (#868) 2020-08-05 17:13:35 +07:00
Igor Mandrigin
8bc293b3f7
Remove unnecessary memory profiling (#872)
* remove separate memory profiling from staged sync

* don’t run pprof globally always
2020-08-05 10:54:19 +01:00
Igor Mandrigin
422282fe7b
Merge pull request #870 from ledgerwatch/lmdb-kv-override
Add lmdb.mapSize param
2020-08-05 11:03:27 +02:00
Igor Mandrigin
d48b9141be
Merge pull request #871 from ledgerwatch/staged-sync-piechart
docs: add a piechart with stages
2020-08-05 11:03:12 +02:00
Igor Mandrigin
8b5903f6f2 docs: add a piechart with stages 2020-08-05 10:29:15 +02:00
Igor Mandrigin
6c815b3f6a fix cmd/integration 2020-08-05 10:21:08 +02:00
Igor Mandrigin
e732ccd438 add lmdb.mapSize param 2020-08-05 10:17:50 +02:00
ledgerwatch
0514501937
Revert "Use stage name as db key (#858)" (#867)
This reverts commit 7290bf519e.
2020-08-04 11:05:27 +01:00
Alex Sharov
7290bf519e
Use stage name as db key (#858) 2020-08-04 16:25:28 +07:00
Alex Sharov
b5345a712a
resident_memory_docs (#864)
* resident_memory_docs

* add glossary

* add glossary

* add glossary

* add glossary

* add glossary
2020-08-04 09:03:59 +01:00
pk
91baa688bd
Update stagedsync.go (#866)
fixed a typo from `compiting` to `computing `
2020-08-04 09:03:47 +01:00
Alex Sharov
a5c1089d58
optimize .get (#863) 2020-08-04 10:31:37 +07:00
Alex Sharov
9c0f6cd166
stage3_block_compression_support (#859) 2020-08-03 14:42:10 +03:00
Igor Mandrigin
7a8872bf5f
Update README.md 2020-08-02 18:27:13 +02:00
Igor Mandrigin
6611e8c060
Update README.md 2020-08-02 18:24:07 +02:00
Igor Mandrigin
d77c13aa68
Update README.md 2020-08-02 18:23:40 +02:00
Igor Mandrigin
09bdb272ff
Update README.md 2020-08-02 17:57:23 +02:00