Skip to content

Conversation

@peterbroadhurst
Copy link
Contributor

@peterbroadhurst peterbroadhurst commented Oct 14, 2022

viper.GetString does not return a value, if the default was set to a type that wraps string.

So the fact we were setting the default for firstEvent as core.SubOptsFirstEventOldest, meant the default did not work.

This is a significant bug, as it changes the default in v1.1 to listen from the current block (the EthConnect/FabConnect/EVMConnect default for an unset value), rather than the beginning of the blockchain (as we did in v1.0).

Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
@codecov-commenter
Copy link

Codecov Report

Merging #1089 (5e6611c) into main (a39909b) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1089   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         307      307           
  Lines       20331    20331           
=======================================
  Hits        20329    20329           
  Misses          2        2           
Impacted Files Coverage Δ
internal/namespace/config.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@nguyer nguyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks for sorting this one out!

@nguyer nguyer merged commit 5fb9693 into hyperledger:main Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants