Skip to content

Conversation

@shorsher
Copy link
Member

@shorsher shorsher commented Jul 12, 2022

  • introduce a new remotename config key for tokens plugins
  • remotename must be unique
  • If not provided, remotename will default to the plugin name
  • remotename should never be stored in the local database.

The definitions package now utilizes the remotename of tokens plugins. defsender will replace the local token plugin name with the remote name before broadcasting the definition. The defhandler will then replace the remotename with the local name after receiving a broadcast.

@codecov-commenter
Copy link

codecov-commenter commented Jul 12, 2022

Codecov Report

Merging #900 (2496351) into main (995d53b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #900   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files         298      298           
  Lines       19563    19600   +37     
=======================================
+ Hits        19557    19594   +37     
  Misses          5        5           
  Partials        1        1           
Impacted Files Coverage Δ
internal/coreconfig/coreconfig.go 100.00% <ø> (ø)
cmd/firefly.go 100.00% <100.00%> (ø)
internal/definitions/handler.go 100.00% <100.00%> (ø)
internal/definitions/handler_tokenpool.go 100.00% <100.00%> (ø)
internal/definitions/sender.go 100.00% <100.00%> (ø)
internal/definitions/sender_tokenpool.go 100.00% <100.00%> (ø)
internal/multiparty/manager.go 100.00% <100.00%> (ø)
internal/namespace/manager.go 100.00% <100.00%> (ø)
internal/orchestrator/orchestrator.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df58394...2496351. Read the comment docs.

@shorsher shorsher force-pushed the remote-name-tokens branch from 3b47d54 to c2f0bb7 Compare July 14, 2022 11:58
@shorsher
Copy link
Member Author

Seems I accidentally pulled in some changes from #896, gonna fix them now.

@shorsher shorsher force-pushed the remote-name-tokens branch from c2f0bb7 to b3ec5ba Compare July 15, 2022 02:29
Copy link
Contributor

@awrichar awrichar left a comment

Choose a reason for hiding this comment

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

Looks good. We should probably add an E2E test.

shorsher added 5 commits July 19, 2022 08:49
Signed-off-by: Alex Shorsher <alex.shorsher@kaleido.io>
Signed-off-by: Alex Shorsher <alex.shorsher@kaleido.io>
 - introduce a new `remotename` key for tokens plugins
 - `remotename` must be unique

The definitions package now utilizes the `remotename` of tokens plugins.
`defsender` will replace the local token plugin name with the remote
name before sending the definition. The `defhandler` will then replace
the `remotename` with the local name after receiving a broadcast.

Signed-off-by: Alex Shorsher <alex.shorsher@kaleido.io>
Signed-off-by: Alex Shorsher <alex.shorsher@kaleido.io>
Signed-off-by: Alex Shorsher <alex.shorsher@kaleido.io>
@shorsher shorsher force-pushed the remote-name-tokens branch from 371c602 to 17dfa78 Compare July 19, 2022 13:23
@shorsher shorsher merged commit 8e17c9a into hyperledger:main Jul 19, 2022
@shorsher shorsher deleted the remote-name-tokens branch July 19, 2022 13:44
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