-
Notifications
You must be signed in to change notification settings - Fork 9
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
CORE-15909: make CurrentGroupParametersLookup public api #1202
CORE-15909: make CurrentGroupParametersLookup public api #1202
Conversation
Jenkins build for PR 1202 build 24 Build Successful: |
ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/CurrentGroupParametersService.java
Outdated
Show resolved
Hide resolved
2992673
to
4cdacd7
Compare
4cdacd7
to
55f685c
Compare
ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/CurrentGroupParametersService.java
Outdated
Show resolved
Hide resolved
...er/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoLedgerTransaction.java
Outdated
Show resolved
Hide resolved
974e34c
to
81d51f3
Compare
ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/GroupParametersService.java
Outdated
Show resolved
Hide resolved
...er/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoLedgerTransaction.java
Show resolved
Hide resolved
ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/GroupParametersService.java
Outdated
Show resolved
Hide resolved
ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/GroupParametersService.java
Outdated
Show resolved
Hide resolved
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.
LGTM
@@ -0,0 +1,17 @@ | |||
package net.corda.v5.ledger.utxo; |
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.
Leaving this as a note to myself, so don't worry about it for now.
Should group parameters be available for the consensual ledger as well? If the answer is yes, then GroupParametersLookup
should either live in the membership
module or the ledger-common
module.
There is an argument it should be in the membership
module regardless.
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.
@blsemo @dimosr @charlieR3 let me know if you have any thoughts.
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.
I think adding anything to Consensual Ledger is a product question.
And as I heard, Consensual ledger is not one of the top priorities.
On the other hand, this module does not have anything UTXO-specific.
Also, future ledger modules may need it.
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.
Yeah, that's my thinking as well.
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.
Potentially this should actually go into application
along side the MemberLookup
interface.
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.
Yes, I think it could fit in application
with the MemberLookup
interface. The GroupParameters
interface is in the membership
module already.
Saying that though, the NotaryInfo
interface is in membership
but NotaryLookup
is in ledger-common
. I think NotaryInfo
is mainly in membership
though because GroupParameters
depends on it and we don't want membership
to depend on ledger
.
I would lean towards having it in membership
so that it is not ledger specific. We allow adding any custom metadata into to group parameters for example which doesn't necessarily need to be ledger specific.
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.
Maybe we should consider moving NotaryLookup
too (we'd have to deprecate the existing one and copy it to application
/membership
).
I think feels like the right fit for GroupParametersLookup
and possibly NotaryLookup
.
Happy to go with the majority on this.
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.
The original logic for NotaryLookup
being in ledger-common
was that it's tightly linked with the ledger layer so it seems like a better place for it. But not sure that matters much if NotaryInfo
is in membership
anyway. membership
is a bit of a cross layer concept anyway so I'm happy to go with the majority also.
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.
I would handle NotaryLookup in a separate ticket.
But I would move GroupParametersLookup
to the most future-proof place in this one.
(However, I am not too sure whether application or membership is the best.)
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.
Lets move GroupParametersLookup
to v5.application.membership
. We can raise a tech debt for NotaryLookup
, ideally to be reviewed before 5.1. Then we can decide if they should all move to the membership
module or if they all live in v5.application.membership
.
ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/GroupParametersLookup.java
Outdated
Show resolved
Hide resolved
This reverts commit 46e083e.
5baa9ea
to
072476e
Compare
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.
LGTM
This PR introduces a new public api for
CurrentGroupParametersService
that will allow users access toGroupParameters