Skip to content

Update host-client.js for better handling of missing messageKey#240

Open
gadget78 wants to merge 2 commits into
EvernodeXRPL:mainfrom
gadget78:patch-1
Open

Update host-client.js for better handling of missing messageKey#240
gadget78 wants to merge 2 commits into
EvernodeXRPL:mainfrom
gadget78:patch-1

Conversation

@gadget78

@gadget78 gadget78 commented May 9, 2025

Copy link
Copy Markdown

improved missing message key handling on tenants account,
so it doesn't throw fault and stop code when it isn't present, (which produces orphaned/ghost instance)
this PR will make it continue with the instance data omitted, with a error message in its place instead.

we could as an alternative, default to unencrypted ?
its only used to encrypt the instance info on acquire success currently. so i feel omitting info is a safer method.
as could always implement the already in place method of having options.messageKey = 'none' within sashi agent if needed ?

this only occurs when using a different method of signing acquire lease type functions, (as they are not initialised )
which is where I found the fault, when tenants use Xaman to acquire a lease and their accounts are not set with message key.

gadget78 added 2 commits May 9, 2025 22:50
improved missing message key handling on tenants account,
so it doesn't throw fault and stop code when it isn't present, (which produces orphaned/ghost instance)
this PR will make it continue with the instance data omitted, with a error message in its place instead.

we could as an alternative, default to unencrypted ? but i feel this is a safer method.
as could always use the already in place method of having options.messageKey = 'none' instead if needed ?
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.

1 participant