-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maintenance: cleanup TODOs, add issues numbers to remaining TODOs #1876
Conversation
@@ -132,3 +132,19 @@ func NewTestGenesisWithTrieAndHeader(t *testing.T) (*Genesis, *trie.Trie, *types | |||
require.NoError(t, err) | |||
return gen, genTrie, genesisHeader | |||
} | |||
|
|||
// NewDevGenesisWithTrieAndHeader generates test dev genesis, genesis trie and genesis header |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we merge code of NewTestGenesisWithTrieAndHeader
and NewDevGenesisWithTrieAndHeader
?
The code is similar except for the file name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
dot/digest/digest_test.go
Outdated
|
||
return headers | ||
} | ||
|
||
func newTestHandler(t *testing.T, withBABE, withGrandpa bool) *Handler { //nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
withBABE
and withGrandpa
are not used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
dot/state/test_helpers.go
Outdated
// AddBlocksToState adds blocks to a BlockState up to depth, with random branches | ||
func AddBlocksToState(t *testing.T, blockState *BlockState, depth int) ([]*types.Header, []*types.Header) { | ||
// AddBlocksToState adds `depth` number of blocks to the BlockState, optionally with random branches | ||
func AddBlocksToState(t *testing.T, blockState *BlockState, depth int, withBranches bool) ([]*types.Header, []*types.Header) { | ||
previousHash := blockState.BestBlockHash() | ||
|
||
branches := []testBranch{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var (
currentChain, branchChains []*types.Header
branches []testBranch
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
dot/network/test_helpers.go
Outdated
@@ -134,7 +134,7 @@ func (s *testStreamHandler) writeToStream(stream libp2pnetwork.Stream, msg Messa | |||
|
|||
func (s *testStreamHandler) readStream(stream libp2pnetwork.Stream, peer peer.ID, decoder messageDecoder, handler messageHandler) { | |||
var ( | |||
maxMessageSize uint64 = maxBlockResponseSize // TODO: determine actual max message size | |||
maxMessageSize uint64 = maxBlockResponseSize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgBytes := make([]byte, maxBlockResponseSize)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
dot/rpc/modules/state.go
Outdated
return nil | ||
} | ||
|
||
for _, key := range keys { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*res = make([]interface{}, 0, len(keys))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
dot/types/extrinsic.go
Outdated
err = decoder.Decode(&e.Version) | ||
if err != nil { | ||
return err | ||
} | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return decoder.Decode(&e.Version)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
lib/runtime/wasmer/imports.go
Outdated
@@ -661,7 +661,7 @@ func ext_crypto_sr25519_verify_version_1(context unsafe.Pointer, sig C.int32_t, | |||
|
|||
if ok, err := pub.VerifyDeprecated(message, signature); err != nil || !ok { | |||
logger.Debug("[ext_crypto_sr25519_verify_version_1] failed to validate signature", "error", err) | |||
// TODO: fix this, fails at block 3876 | |||
// Tthis fails at block 3876, which seems to be expected, based on discussions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Tthis fails at block 3876, which seems to be expected, based on discussions | |
// This fails at block 3876, which seems to be expected, based on discussions |
Codecov Report
@@ Coverage Diff @@
## development #1876 +/- ##
===============================================
- Coverage 59.72% 59.60% -0.13%
===============================================
Files 187 187
Lines 19185 19110 -75
===============================================
- Hits 11458 11390 -68
- Misses 5819 5825 +6
+ Partials 1908 1895 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Changes
Tests
Issues
TODO
Comments from Code #1846Primary Reviewer