Skip to content
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

Miscellaneous fixes + get local env running again #57

Merged
merged 11 commits into from
Jan 5, 2022
Merged

Conversation

aalu1418
Copy link
Collaborator

@aalu1418 aalu1418 commented Dec 17, 2021

  • Update local testing environment to be compatible with latest gauntlet
  • Remove extra large state log from reading state
  • Log tx sig for debugging
  • Return error in transmit go routine if context not cancelled
    • tested? - to be addressed in separate PR
  • Check against new contract + transmission state Contracts: Allow storing more historical data & refactor validator+proxy into store #74
  • Update job spec parameter from RPC to URL (already done)

@aalu1418 aalu1418 changed the base branch from master to feature/relay December 17, 2021 18:12
@aalu1418 aalu1418 linked an issue Dec 17, 2021 that may be closed by this pull request
@aalu1418 aalu1418 marked this pull request as ready for review December 17, 2021 20:24
context.Background(), // does not use libocr transmit context
c.client.rpc,
c.client.ws,
tx,
true, // skip preflight
rpc.CommitmentConfirmed,
); err != nil {
)
if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should report this error back to libocr if it happens while libocr context still didn't expire (timeout).

For example, if the SendAndConfirmTra.. errors immediately, we don't actually report these errors upstream, so libocr assumes success while more information is available.

Copy link
Collaborator

@krebernisak krebernisak Dec 17, 2021

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oooh that's a good point. I'll give it a shot...and see if i can test it too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

update: this will be done in a separate PR. this PR is now for getting everything working again with recent program changes

@aalu1418 aalu1418 changed the title Miscellaneous fixes Miscellaneous fixes + get local env running again Jan 5, 2022
@aalu1418 aalu1418 marked this pull request as ready for review January 5, 2022 20:58
Copy link
Contributor

@topliceanu topliceanu left a comment

Choose a reason for hiding this comment

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

lgtm

}),
)
).every((isValid) => isValid)
this.flags.TESTING_ONLY_IGNORE_PAYEE_VALIDATION &&
Copy link
Contributor

Choose a reason for hiding this comment

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

😢

input.operators.map(async ({ payee }) => {
try {
const info = await token.getAccountInfo(new PublicKey(payee))
return !!info.address
Copy link
Contributor

Choose a reason for hiding this comment

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

😢 This is a dangerous cast. Do we know address is a string? Can you make this specific

).every((isValid) => isValid)

this.require(
areValidPayees || !!input.allowFundRecipient,
Copy link
Contributor

Choose a reason for hiding this comment

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

😢

@aalu1418
Copy link
Collaborator Author

aalu1418 commented Jan 5, 2022

@topliceanu thanks for the review! i'll make a note to fix those things. I have ideas to improve some of them

@aalu1418 aalu1418 merged commit 218ff2c into develop Jan 5, 2022
@aalu1418 aalu1418 deleted the misc-updates branch January 5, 2022 21: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
3 participants