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.
This PR prevents static addresses to create new keys and it always defaults to
I have verified the hsw use case and below is my results with this PR
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$ ./hsw-cli --network regtest --api-key roo --id static-test2 --account default address
{
"name": "default",
"account": 0,
"branch": 0,
"index": 0,
"publicKey": "0242ad36133b4932aaac9269f18ca6a4db4886308efa168fdbe1d8ebd8ad791d60",
"script": "52210242ad36133b4932aaac9269f18ca6a4db4886308efa168fdbe1d8ebd8ad791d602103e0eb897d5caf94aba71a25358530939efbe7e94933fd157fffd59f6ec8efeeb652ae",
"address": "rs1qmh37d7x2nu0en4k0z302cv4mflz5n37jq9zcfz9wyckk8wz5eutscxlwsq"
}
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$ ./hsw-cli --network regtest --api-key roo --id static-test2 --account default address
{
"name": "default",
"account": 0,
"branch": 0,
"index": 0,
"publicKey": "0242ad36133b4932aaac9269f18ca6a4db4886308efa168fdbe1d8ebd8ad791d60",
"script": "52210242ad36133b4932aaac9269f18ca6a4db4886308efa168fdbe1d8ebd8ad791d602103e0eb897d5caf94aba71a25358530939efbe7e94933fd157fffd59f6ec8efeeb652ae",
"address": "rs1qmh37d7x2nu0en4k0z302cv4mflz5n37jq9zcfz9wyckk8wz5eutscxlwsq"
}
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$
roza-mac-pro:bin rozaydin$ ./hsw-cli --network regtest --api-key roo --id static-test2 --account default address
{
"name": "default",
"account": 0,
"branch": 0,
"index": 0,
"publicKey": "0242ad36133b4932aaac9269f18ca6a4db4886308efa168fdbe1d8ebd8ad791d60",
"script": "52210242ad36133b4932aaac9269f18ca6a4db4886308efa168fdbe1d8ebd8ad791d602103e0eb897d5caf94aba71a25358530939efbe7e94933fd157fffd59f6ec8efeeb652ae",
"address": "rs1qmh37d7x2nu0en4k0z302cv4mflz5n37jq9zcfz9wyckk8wz5eutscxlwsq"
}
I have also added a feature test to check this functionaliy on feature tests