kaspad icon indicating copy to clipboard operation
kaspad copied to clipboard

Convert recursion of mempool/removeOrphans (when removeRedeemers = true) to loop

Open svarogg opened this issue 4 years ago • 0 comments

Currently orphans are limited to 100, but we might want to increase the number, thus we should remove the recursion, to avoid stack overflows.

When solving this - remove the comment above defaultMaximumOrphanTransactionCount saying

	// defaultMaximumOrphanTransactionCount should remain small as long as we have recursion in
	// removeOrphans when removeRedeemers = true

svarogg avatar Jun 17 '21 09:06 svarogg