Martin Holst Swende
650ad19c2d
core: make txpool handle reorg due to setHead
6 years ago
Jordan Krage
27ce4eb78b
core: sanitize more TxPoolConfig fields ( #17210 )
...
* core: sanitize more TxPoolConfig fields
* core: fix TestTransactionPendingMinimumAllowance
6 years ago
mr_franklin
3fd87f2193
core: fix comment typo ( #18144 )
6 years ago
Wuxiang
81080bf8cb
core: fix a typo ( #17733 )
6 years ago
Wenbiao Zheng
6a33954731
core, eth, trie: use common/prque ( #17508 )
6 years ago
Péter Szilágyi
e0d0e64ce2
cmd, core, miner: add --txpool.locals and priority mining
6 years ago
Antoine Rondelet
27a278e6e3
core: fixed typo in addresssByHeartbeat ( #17243 )
6 years ago
Osuke
10780e8a00
core: fix txpool guarantee comment ( #17214 )
...
* fixed-typo
* core: fix txpool guarantee comment
6 years ago
Wenbiao Zheng
52b1d09457
core: reduce nesting in transaction pool code ( #16980 )
7 years ago
John C. Vernaleo
8c4a7fa8d3
core: change comment to match code more closely ( #16963 )
7 years ago
kiel barry
cbfb40b0aa
params: fix golint warnings ( #16853 )
...
params: fix golint warnings
7 years ago
Péter Szilágyi
2ab24a2a8f
core: concurrent background transaction sender ecrecover
7 years ago
Péter Szilágyi
342ec83d67
core: fix transaction event asynchronicity
7 years ago
Ryan Schneider
55b579e02c
core: use a wrapped map to remove contention in `TxPool.Get`. ( #16670 )
...
* core: use a wrapped `map` and `sync.RWMutex` for `TxPool.all` to remove contention in `TxPool.Get`.
* core: Remove redundant `txLookup.Find` and improve comments on txLookup methods.
7 years ago
Péter Szilágyi
49719e21bc
core, eth: minor txpool event cleanups
7 years ago
rjl493456442
a2e43d28d0
all: collate new transaction events together
7 years ago
Crispin Flowerday
0afd767537
core: ensure local transactions aren't discarded as underpriced
...
This fixes an issue where local transactions are discarded as
underpriced when the pool and queue are full.
7 years ago
thomasmodeneis
ba1030b6b8
build: enable goimports and varcheck linters ( #16446 )
7 years ago
Péter Szilágyi
db48d312e4
core: txpool stable underprice drop order, perf fixes
7 years ago
Péter Szilágyi
2b5d1a4a4c
core: update txpool tests for the removal fix
7 years ago
cui
f8601430fd
core: should enqueue the invalids tx anyway
...
even the pending is empty we shoud enqueue the invalid txs
7 years ago
Anton Evangelatov
ae9f97221a
metrics: pull library and introduce ResettingTimer and InfluxDB reporter ( #15910 )
...
* go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter.
* vendor: change nonsense/go-metrics to ethersphere/go-metrics
* go-metrics: add tests. move ResettingTimer logic from reporter to type.
* all, metrics: pull in metrics package in go-ethereum
* metrics/test: make sure metrics are enabled for tests
* metrics: apply gosimple rules
* metrics/exp, internal/debug: init expvar endpoint when starting pprof server
* internal/debug: tiny comment formatting fix
7 years ago
Péter Szilágyi
6f69cdd109
all: switch gas limits from big.Int to uint64
7 years ago
Péter Szilágyi
7138de7b55
core: silence txpool reorg warning (annoying on import) ( #15725 )
7 years ago
Kurkó Mihály
b4cf57a581
core: fix typos ( #15720 )
7 years ago
Péter Szilágyi
5e1581c2c3
core: fix panic when stat-ing a tx from a queue-only account ( #15714 )
7 years ago
ferhat elmas
9619a61024
all: gofmt -w -s ( #15419 )
7 years ago
Péter Szilágyi
0095531a58
core, eth, les: fix messy code ( #15367 )
...
* core, eth, les: fix messy code
* les: fixed tx status test and rlp encoding
* core: add a workaround for light sync
7 years ago
Felföldi Zsolt
ca376ead88
les, light: LES/2 protocol version ( #14970 )
...
This PR implements the new LES protocol version extensions:
* new and more efficient Merkle proofs reply format (when replying to
a multiple Merkle proofs request, we just send a single set of trie
nodes containing all necessary nodes)
* BBT (BloomBitsTrie) works similarly to the existing CHT and contains
the bloombits search data to speed up log searches
* GetTxStatusMsg returns the inclusion position or the
pending/queued/unknown state of a transaction referenced by hash
* an optional signature of new block data (number/hash/td) can be
included in AnnounceMsg to provide an option for "very light
clients" (mobile/embedded devices) to skip expensive Ethash check
and accept multiple signatures of somewhat trusted servers (still a
lot better than trusting a single server completely and retrieving
everything through RPC). The new client mode is not implemented in
this PR, just the protocol extension.
7 years ago
Péter Szilágyi
0e7d019e0e
core: fire tx event on replace, expand tests
7 years ago
Péter Szilágyi
cc313e78b7
core: use blocks and avoid deep reorgs in txpool
7 years ago
Péter Szilágyi
da7d57e07c
core: make txpool operate on immutable state
7 years ago
Miya Chen
bf1e263128
core, light: send chain events using event.Feed ( #14865 )
7 years ago
Péter Szilágyi
1c45f2f42e
core: fix txpool journal and test races
7 years ago
Péter Szilágyi
3d32690b54
cmd, core, eth: journal local transactions to disk ( #14784 )
...
* core: reduce txpool event loop goroutines and sync structs
* cmd, core, eth: journal local transactions to disk
* core: journal replacement pending transactions too
* core: separate transaction journal from pool
7 years ago
Péter Szilágyi
34ec9913f6
core: test locals support in txpool queue limits, fix
...
The commit reworks the transaction pool queue limitation tests
to cater for testing local accounts, also testing the nolocal flag.
In addition, it also fixes a panic if local transactions exceeded
the global queue allowance (no accounts left to drop from) and also
fixes queue eviction to operate on all accounts, not just the one
being updated.
7 years ago
Péter Szilágyi
88b4fe7d21
core: handle nolocals during add, exepmt locals from expiration
7 years ago
Péter Szilágyi
5e38f7a664
cmd, core: add --txpool.nolocals to disable local price exemptions
7 years ago
Péter Szilágyi
48ee7f9de7
core, eth, les: polish txpool API around local/remote txs
7 years ago
Martin Holst Swende
a633a2d7ea
core: Prevent local tx:s from being discarded
7 years ago
Martin Holst Swende
67aff49822
core: Change local-handling to use sender-account instead of tx hashes
7 years ago
Péter Szilágyi
eebde1a2e2
core: ensure transactions correctly drop on pool limiting
8 years ago
Martin Holst Swende
b0b3cf2eeb
core: add testcase for txpool
8 years ago
Péter Szilágyi
cba33029a8
core: only reorg changed account, not all
8 years ago
Péter Szilágyi
9702badd83
core: don't uselessly recheck transactions on dump
8 years ago
Péter Szilágyi
280609c99b
core: check for gas limit exceeding txs too on new block
8 years ago
Péter Szilágyi
08959bbc70
cmd, core, eth: configurable txpool parameters
8 years ago
Péter Szilágyi
c98bce709c
core: fix minor accidental typos and comment errors
8 years ago
changhong
17f0b11942
core: typos and comments improve
...
1. fix typos
2. methods recevier of struct should be same
3. comments improve
(cherry picked from commit 1ba9795395
)
8 years ago
Péter Szilágyi
a2f23ca9b1
cmd, core, eth, miner: remove txpool gas price limits ( #14442 )
8 years ago