fix(core): fix txn pool for latest runtime
Changes
Improved txnPool logic and added txn formatting based on txnQueueApiVersion to support the latest runtime.
Tests
go test ./dot/core
Issues
https://github.com/ChainSafe/gossamer/issues/2462
Primary Reviewer
@noot
@timwu20 https://github.com/ChainSafe/gossamer/pull/2809#discussion_r983858307 so you think good to move this call to just above handleChainReorg? Just wanted to confirm before changing since will need to update tests
@timwu20 https://github.com/ChainSafe/gossamer/pull/2809#discussion_r983864001 so should I change the function signature to return an error?
Updated!
It seems adding panics to handleBlockAsync has caused things to break. WIll further investigate
@timwu20 I think the core tests should be fixed now. Elizabeth cautioned against having these added panics, but maybe good for testing still? Your call
lib/blocktree/mock_instance_test.goseems like an appropriate name based on its contents, why has it been changed tolib/blocktree/mocks_test.go
- We want to shut down the node only in case of really critical errors. If the node can continue despite some error, it should.
@kishansagathiya This does indeed make sense since we are dealing with the runtime. However, we are changing the mocks in the code in general to have a mocks_generate_tests file that creates a mocks_test mock file. So even tho that makes sense for this specific case I changed it to keep with the convention used elsewhere in the code
:tada: This PR is included in version 0.7.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: