Skip to content

improvements #772

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

Merged
merged 19 commits into from
Nov 12, 2024
Merged

improvements #772

merged 19 commits into from
Nov 12, 2024

Conversation

adecaro
Copy link
Contributor

@adecaro adecaro commented Oct 17, 2024

This PR does the following:

  • Update FSC to improvements fabric-smart-client#690
  • common.Validator: support for custom Deserializer
  • WalletRegistry: export GetIdentityMetadata
  • TMS: lazy initialization
  • network/fabric: lazy load TMS
  • some additional logs

Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
// LocalIdentity contains information about an identity
type LocalIdentity struct {
Name string `yaml:"name,omitempty"`
EnrollmentID string
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need annotations for the rest of the properties?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we don't need here at all

}

func (l *LocalMembership) IDs() ([]string, error) {
var ids []string
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need an rlock here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

@@ -98,7 +92,6 @@ func (d *Driver) New(network, _ string) (driver.Network, error) {
d.configService,
d.filterProvider,
dbManager,
d.defaultPublicParamsFetcher,
Copy link
Contributor

Choose a reason for hiding this comment

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

It makes sense not to inject the fetcher. But i would keep it in the constructor as it helps extending the network and reusing functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is that we just don't need it here

- add locking where needed in the local membership struct

Signed-off-by: Angelo De Caro <[email protected]>
Copy link
Contributor

@alexandrosfilios alexandrosfilios left a comment

Choose a reason for hiding this comment

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

LGTM

@adecaro adecaro merged commit 47e9171 into main Nov 12, 2024
50 checks passed
@adecaro adecaro deleted the f-err-handling branch November 12, 2024 14:07
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.

2 participants