mixin icon indicating copy to clipboard operation
mixin copied to clipboard

Old transactions stuck in cache for a very long time

Open cedricfung opened this issue 3 years ago • 1 comments

If there are lots of transactions went into the cache pool, sometimes most of them will just stuck in the pool and never finalized, but new transactions seem work well.

cedricfung avatar Feb 10 '22 15:02 cedricfung

If there are lots of transactions went into the cache pool, sometimes most of them will just stuck in the pool and never finalized, but new transactions seems to work perfectly well

steal-7126 avatar Sep 07 '22 13:09 steal-7126

The exact reason may be the bug in ordering the transactions cache queue, but I think the main cause is 0429e19878e6d4af86824799f62d05c994f4fc58

Because too many removed chains also contribute to the queue state because the network sync loop.

cedricfung avatar Sep 29 '22 12:09 cedricfung

This is the possible cause, but recent situations showed that those QueueState were very small exactly, so it's very unlikely this.

		caches, finals, _ := node.QueueState()
		if caches > 1000 || finals > 500 {
			logger.Printf("LoopCacheQueue QueueState too big %d %d\n", caches, finals)
			continue
		}

cedricfung avatar Oct 06 '22 07:10 cedricfung

This seems more like a wallet issue, not related to the kernel.

cedricfung avatar Oct 13 '22 18:10 cedricfung