-
Notifications
You must be signed in to change notification settings - Fork 516
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
Feat: Support Selectable Write Ledger #2339
Merged
dbluhm
merged 10 commits into
openwallet-foundation:main
from
shaangill025:multi_ledger_write
Aug 2, 2023
+924
−185
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d83bae3
initial impl for selectable write ledger
shaangill025 6367169
additional changes
shaangill025 f7966e5
doc + endpoint update
shaangill025 f9bb910
endorser info in multi ledger config + tests
shaangill025 8d3daa7
doc update
shaangill025 bcb1e4d
extract common profile code into ml utility
shaangill025 4f1637b
bcovrin typo fix
shaangill025 7580a35
write ldger persistence in multitenant mode
shaangill025 4805259
Merge branch 'main' of https://github.com/hyperledger/aries-cloudagen…
shaangill025 071a969
Merge branch 'main' into multi_ledger_write
dbluhm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
aries_cloudagent/config/tests/test-ledger-args-no-genesis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- id: sovrinMain | ||
is_production: true | ||
is_write: true | ||
- id: sovrinStaging | ||
is_production: true | ||
- id: sovrinTest | ||
is_production: false |
32 changes: 32 additions & 0 deletions
32
aries_cloudagent/config/tests/test-ledger-args-no-write.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
- id: sovrinMain | ||
is_production: true | ||
genesis_transactions: | ||
reqSignature: {} | ||
txn: | ||
data: | ||
data: | ||
alias: Node1 | ||
blskey: >- | ||
4N8aUNHSgjQVgkpm8nhNEfDf6txHznoYREg9kirmJrkivgL4oSEimFF6nsQ6M41QvhM2Z33nves5vfSn9n1UwNFJBYtWVnHYMATn76vLuL3zU88KyeAYcHfsih3He6UHcXDxcaecHVz6jhCYz1P2UZn2bDVruL5wXpehgBfBaLKm3Ba | ||
blskey_pop: >- | ||
RahHYiCvoNCtPTrVtP7nMC5eTYrsUA8WjXbdhNc8debh1agE9bGiJxWBXYNFbnJXoXhWFMvyqhqhRoq737YQemH5ik9oL7R4NTTCz2LEZhkgLJzB3QRQqJyBNyv7acbdHrAT8nQ9UkLbaVL9NBpnWXBTw4LEMePaSHEw66RzPNdAX1 | ||
client_ip: 192.168.65.3 | ||
client_port: 9702 | ||
node_ip: 192.168.65.3 | ||
node_port: 9701 | ||
services: | ||
- VALIDATOR | ||
dest: Gw6pDLhcBcoQesN72qfotTgFa7cbuqZpkX3Xo6pLhPhv | ||
metadata: | ||
from: Th7MpTaRZVRYnPiabds81Y | ||
type: '0' | ||
txnMetadata: | ||
seqNo: 1 | ||
txnId: fea82e10e894419fe2bea7d96296a6d46f50f93f9eeda954ec461b2ed2950b62 | ||
ver: '1' | ||
- id: sovrinStaging | ||
is_production: true | ||
genesis_file: /home/indy/ledger/sandbox/pool_transactions_genesis | ||
- id: sovrinTest | ||
is_production: false | ||
genesis_url: 'http://localhost:9000/genesis' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this change going to cause issues with single-tenant agents being able to declare more than one write ledger in the config file? I believe currently the assumption is that there only ever is one "write" ledger at any given time.
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 meaning of
is_write
has changed with this PR. For example:is_write
property means that the ledger is write configurable. With reference to the above config example, bothbcorvinTest
andgreenlightDev
ledgers are write configurable. By default, on startupbcorvinTest
will be the write ledger as it is the topmost write configurable production ledger. UsingPUT /ledger/{ledger_id}/set-write-ledger
endpoint, eithergreenlightDev
andbcorvinTest
can be set as the write ledger.