Daniel Liu
859308c03f
core: change comment to match code more closely ( #16963 )
2024-05-09 18:38:27 +08:00
Daniel Liu
4f0f6e08c7
core: concurrent background transaction sender ecrecover ( #16882 )
2024-05-09 18:38:27 +08:00
Daniel Liu
fb89a5406b
core: fix transaction event asynchronicity ( #16843 )
2024-05-09 18:38:27 +08:00
Daniel Liu
88695caf8f
core: use a wrapped map w/ sync.RWMutex for TxPool.all to remove contention in TxPool.Get. ( #16670 )
2024-05-09 18:38:27 +08:00
Daniel Liu
2060ff7eeb
core: Ensure that local transactions aren't discarded as underpriced ( #16576 )
2024-05-09 18:38:27 +08:00
Daniel Liu
702e0caa29
core: txpool stable underprice drop order, perf fixes ( #16494 )
2024-05-09 18:38:23 +08:00
Daniel Liu
1c9f1d8279
all: change TxPreEvent to TxsPreEvent ( #16720 )
2024-03-28 11:16:21 +08:00
Daniel Liu
349f71db7b
defer time.Since
2023-11-01 12:43:50 +08:00
Daniel Liu
0e8b3f1d31
replace TRC21Cost with TxCost
2023-10-16 11:24:47 +08:00
Daniel Liu
845d3d49e5
change minGasPrice in function validateTx
2023-10-16 11:24:47 +08:00
olumuyiwadad
b5abbfed79
new EVM Upgrade
...
- Solidity Upgraded up to v0.8.0
- Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
AnilChinchawale
a8fc240b29
remove logs & add list of authorized signers
2020-12-30 18:00:37 +05:30
dev-vadim
dbe8c9d984
upgrade XDC.Network with v1.8.27.
2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036
upgrade codebase with ethereum:v1.8.13
2020-11-23 13:40:30 +05:30
Anil Chinchawale
4adc9c0fdc
Update tx_pool.go
2019-04-01 14:33:59 +05:30
AnilChinchawale
bf626ddc95
Core Updated
2019-03-16 16:00:19 +05:30
AnilChinchawale
26cafb46ea
Updated changes in genesis
2019-01-19 04:40:21 +05:30
Jordan Krage
27ce4eb78b
core: sanitize more TxPoolConfig fields ( #17210 )
...
* core: sanitize more TxPoolConfig fields
* core: fix TestTransactionPendingMinimumAllowance
2018-12-20 14:00:58 +01:00
MestryOmkar
08843fa176
set min gas price for tx
2018-12-10 11:12:07 +05:30
parmarrushabh
8d7572ef1c
hot fix
2018-11-22 15:49:29 +05:30
mr_franklin
3fd87f2193
core: fix comment typo ( #18144 )
2018-11-21 12:52:02 +02:00
parmarrushabh
4c4fd0a37a
Fixed bug not validate zero gas price for tx deploy SMC.
2018-11-17 18:28:49 +05:30
Rahulraj04
6c67be797b
update logging
2018-11-17 16:37:14 +05:30
Rahulraj04
bc027c4fc0
check nonce special transaction before promote
2018-11-17 12:34:24 +05:30
parmarrushabh
9f36d37558
Parallel process block from fetcher
2018-11-17 12:02:43 +05:30
parmarrushabh
52ae30023a
refactor RW & pairRW connect for block , transaction
2018-11-14 10:40:05 +05:30
MestryOmkar
bbadba469b
change difficulty block in XDPoS
2018-11-12 15:52:55 +05:30
parmarrushabh
f586154a8e
fix error transaction underpriced when add sign tx to pool(full)
2018-11-12 13:08:55 +05:30
AnilChinchwale
8b92c4176c
move from SubscribeTx to Subscribe Special Tx in Double Validate
2018-11-09 15:00:22 +05:30
AnilChinchwale
360584a498
Revert adding double validation layer
2018-11-09 14:39:48 +05:30
parmarrushabh
7ebdbeed64
fix after reviewing
2018-11-09 13:07:34 +05:30
parmarrushabh
9d6344fbb4
Broadcast special Tx through pairRW
2018-11-09 12:45:18 +05:30
parmarrushabh
b8cb600964
Optimize insert new block
2018-11-07 10:09:52 +05:30
MestryOmkar
b955291388
init double validation layer
2018-11-06 18:00:21 +05:30
AnilChinchawale
deb79f4a23
push Randomization implementation
2018-11-06 17:27:13 +05:30
parmarrushabh
944494f6e4
Revert Randomization implementation
2018-11-06 16:16:29 +05:30
AnilChinchawale
d81dc08a50
Get randomize m2 offer from validators in smart contract.
2018-11-05 11:12:22 +05:30
AnilChinchawale
0c1fc6e0ae
concurrence init messages from transactions when insert block
2018-11-05 17:41:45 +05:30
MestryOmkar
9a6c1c5382
Fixed prevent tx zero gas price add to tx pool.
2018-10-27 18:03:27 +05:30
Wuxiang
81080bf8cb
core: fix a typo ( #17733 )
2018-09-21 13:45:42 +03:00
Wenbiao Zheng
6a33954731
core, eth, trie: use common/prque ( #17508 )
2018-09-03 17:33:21 +02:00
Péter Szilágyi
e0d0e64ce2
cmd, core, miner: add --txpool.locals and priority mining
2018-08-22 09:43:57 +03:00
parmarrushabh
a710ab8c68
Hot fixed for bug can't deploy smart contract to master node.
2018-08-16 14:51:17 +05:30
parmarrushabh
dd9a1bbbf0
Fixed go lint.
2018-07-27 17:02:20 +05:30
Antoine Rondelet
27a278e6e3
core: fixed typo in addresssByHeartbeat ( #17243 )
2018-07-25 14:25:14 +03:00
Osuke
10780e8a00
core: fix txpool guarantee comment ( #17214 )
...
* fixed-typo
* core: fix txpool guarantee comment
2018-07-24 18:44:41 +03:00
parmarrushabh
3f1c3839c9
Add feature send tx sign (validator block) from coinbase to smart con…
2018-07-22 16:39:59 +05:30
Wenbiao Zheng
52b1d09457
core: reduce nesting in transaction pool code ( #16980 )
2018-06-14 13:46:43 +03:00
John C. Vernaleo
8c4a7fa8d3
core: change comment to match code more closely ( #16963 )
2018-06-13 10:14:15 +03:00
Péter Szilágyi
01a7e267dc
Merge pull request #16882 from karalabe/streaming-ecrecover
...
core: concurrent background transaction sender ecrecover
2018-06-05 17:13:43 +03:00
kiel barry
cbfb40b0aa
params: fix golint warnings ( #16853 )
...
params: fix golint warnings
2018-06-05 12:31:34 +02:00
Péter Szilágyi
2ab24a2a8f
core: concurrent background transaction sender ecrecover
2018-06-05 11:03:55 +03:00
Péter Szilágyi
342ec83d67
core: fix transaction event asynchronicity
2018-05-30 10:14:00 +03:00
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.
2018-05-23 15:55:42 +03:00
Péter Szilágyi
49719e21bc
core, eth: minor txpool event cleanups
2018-05-18 12:08:24 +03:00
rjl493456442
a2e43d28d0
all: collate new transaction events together
2018-05-18 11:46:44 +03:00
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.
2018-05-02 11:04:40 +03:00
thomasmodeneis
ba1030b6b8
build: enable goimports and varcheck linters ( #16446 )
2018-04-18 00:53:50 +02:00
Péter Szilágyi
db48d312e4
core: txpool stable underprice drop order, perf fixes
2018-04-12 12:54:22 +03:00
Péter Szilágyi
2b5d1a4a4c
core: update txpool tests for the removal fix
2018-03-07 10:58:11 +02:00
cui
f8601430fd
core: should enqueue the invalids tx anyway
...
even the pending is empty we shoud enqueue the invalid txs
2018-03-07 10:07:50 +02:00
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
2018-02-23 11:56:08 +02:00
Péter Szilágyi
6f69cdd109
all: switch gas limits from big.Int to uint64
2018-01-03 14:45:35 +02:00
Péter Szilágyi
7138de7b55
core: silence txpool reorg warning (annoying on import) ( #15725 )
2017-12-21 10:20:10 +02:00
Kurkó Mihály
b4cf57a581
core: fix typos ( #15720 )
2017-12-20 19:08:51 +02:00
Péter Szilágyi
5e1581c2c3
core: fix panic when stat-ing a tx from a queue-only account ( #15714 )
2017-12-20 12:34:43 +02:00
ferhat elmas
9619a61024
all: gofmt -w -s ( #15419 )
2017-11-08 11:45:52 +01:00
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
2017-10-25 12:18:44 +03:00
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.
2017-10-24 15:19:09 +02:00
Péter Szilágyi
0e7d019e0e
core: fire tx event on replace, expand tests
2017-10-20 14:42:19 +03:00
Péter Szilágyi
cc313e78b7
core: use blocks and avoid deep reorgs in txpool
2017-09-05 19:50:29 +03:00
Péter Szilágyi
da7d57e07c
core: make txpool operate on immutable state
2017-09-05 13:34:41 +03:00
Miya Chen
bf1e263128
core, light: send chain events using event.Feed ( #14865 )
2017-08-18 12:58:36 +02:00
Péter Szilágyi
1c45f2f42e
core: fix txpool journal and test races
2017-08-08 12:22:01 +03:00
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
2017-07-28 15:09:39 +02:00
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.
2017-07-06 11:51:59 +03:00
Péter Szilágyi
88b4fe7d21
core: handle nolocals during add, exepmt locals from expiration
2017-07-05 17:16:42 +03:00
Péter Szilágyi
5e38f7a664
cmd, core: add --txpool.nolocals to disable local price exemptions
2017-07-05 17:06:05 +03:00
Péter Szilágyi
48ee7f9de7
core, eth, les: polish txpool API around local/remote txs
2017-07-05 16:51:55 +03:00
Martin Holst Swende
a633a2d7ea
core: Prevent local tx:s from being discarded
2017-06-30 22:55:10 +02:00
Martin Holst Swende
67aff49822
core: Change local-handling to use sender-account instead of tx hashes
2017-06-30 22:43:26 +02:00
Péter Szilágyi
eebde1a2e2
core: ensure transactions correctly drop on pool limiting
2017-06-22 21:03:54 +03:00
Martin Holst Swende
b0b3cf2eeb
core: add testcase for txpool
2017-06-22 20:36:07 +03:00
Péter Szilágyi
cba33029a8
core: only reorg changed account, not all
2017-05-31 23:26:24 +03:00
Péter Szilágyi
9702badd83
core: don't uselessly recheck transactions on dump
2017-05-31 21:29:50 +03:00
Péter Szilágyi
280609c99b
core: check for gas limit exceeding txs too on new block
2017-05-30 00:31:37 +03:00
Péter Szilágyi
08959bbc70
cmd, core, eth: configurable txpool parameters
2017-05-29 11:29:46 +03:00
Péter Szilágyi
c98bce709c
core: fix minor accidental typos and comment errors
2017-05-25 17:22:45 +03:00
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 )
2017-05-25 17:14:33 +03:00
Péter Szilágyi
a2f23ca9b1
cmd, core, eth, miner: remove txpool gas price limits ( #14442 )
2017-05-16 21:07:27 +02:00
Péter Szilágyi
94c71c171f
Merge pull request #3723 from karalabe/logger-updates-2
...
Logger updates
2017-02-28 16:55:37 +02:00
Felix Lange
5f7826270c
all: unify big.Int zero checks, use common/math in more places ( #3716 )
...
* 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
2017-02-28 15:09:11 +01:00
Péter Szilágyi
e588e0ca2b
all: next batch of log polishes to contextual versions
2017-02-28 15:03:20 +02:00
Péter Szilágyi
d4fd06c3dc
all: blidly swap out glog to our log15, logs need rework
2017-02-23 12:16:44 +02:00
Felix Lange
c8695fae35
logger: remove Core verbosity level ( #3659 )
2017-02-15 10:14:44 +01:00
Felix Lange
9b62facdd4
event: deprecate TypeMux and related types
...
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'
2017-01-25 16:25:57 +01:00
Péter Szilágyi
18c77744ff
all: fix spelling errors
2017-01-06 19:44:35 +02:00
Felix Lange
35a7dcb162
all: gofmt -w -s
2017-01-06 15:52:03 +01:00
Péter Szilágyi
c44830ebf3
core, light: allow zero cost txs from inexistent accounts too
2016-12-16 13:30:39 +02:00