Commit Graph

21 Commits

Author SHA1 Message Date
Alexader 1c98689f2d fix(mempool): old ttl key not released in txLiveTimeMap bug 2021-01-19 18:31:09 +08:00
Alexader 2aed7f6ecd refactor(mempool): refactor code according to comments 2021-01-18 20:17:04 +08:00
Alexader abd840d487 feat(order): add ttl index and local indicator for mempool tx
1. add ttl index to track txs need to be rebroadcast
2. add local indicator for each tx in mempool to judge if this tx is from api module
2021-01-18 10:26:06 +08:00
Alexader 6b52259ad3 feat(order): add timeout rebroadcast mechanism in mempool 2021-01-18 10:26:06 +08:00
Lizen0512 d377460c06 fix(mempool): fix skipped txs' ptr when generate block. 2021-01-12 14:40:48 +08:00
Lizen0512 6d7b842f42 refactor(mempool): refactor mempool for raft 2020-12-21 15:40:27 +08:00
Lizen0512 1eeb6bf8b7 feat(mempool): mempool adaptation rbft consensus 2020-10-27 13:24:35 +08:00
Lizen0512 a138baa674 fix(executor): get IBTP directly instead of unmarshal 2020-10-22 20:19:59 +08:00
zhourong 6cea4216ff refactor(*): update tx/hash/address 2020-10-22 13:49:05 +08:00
Lizen0512 6c7a01d1e6 refactor(order): refactor order module transaction type 2020-10-21 22:19:40 +08:00
treasersimplifies 65b922b57c fix(storage): dicard bitxhub storage package to use kit storage 2020-10-20 19:56:53 +08:00
Lizen0512 80454e00e6 feat(pprof): add runtime type for pprof 2020-10-13 21:40:31 +08:00
Lizen0512 41141593db feat(mempool): add comments and unit tests for mempool, and verify the signature in api module instead of mempool. 2020-10-13 12:37:13 +08:00
Lizen 5a53cf1435 fix(mempool): fix two mempool bugs:
1. If some transactions are missing when calling the func constructSameBatch by a
   follower to construct the same block, avoid persistent this block;
2. Increase the chain height of follower after finishing getting the block from mempool;
2020-09-30 10:15:41 +08:00
Lizen b65c466294 delete GetPendingNonceByAccount implement in info.go file 2020-09-27 17:20:05 +08:00
Lizen d6c101e0a6 fix nil txPointer when delete transaction from mempool 2020-09-27 17:00:47 +08:00
Alexader 940f6857d0 fix(order): fix errors in node_test
1. logger in mempool and txCache passed by Order module instead of loggers
2. fix goroutine not return after receiving signal from close channel in mempool error
3. fix idSlice is not initialized with 0 length in GenerateRaftPeers function
2020-09-27 16:11:50 +08:00
Lizen 76e3690bf0 fix GetPendingNonceByAccount api which may be concurrent reading/writing 2020-09-27 16:10:16 +08:00
Alexader f43bb1c09a feat(order): add GetPendingNonceByAccount api
1. add GetPendingNonceByAccount api
2. revise getAccount method for ibtp receipt
2020-09-27 16:10:16 +08:00
Lizen 9cdd54e5da format the mempool files 2020-09-27 16:09:38 +08:00
Lizen d156957976 feat(mempool): add mempool feature 2020-09-27 16:09:38 +08:00