Skip to content

Conversation

@haerdib
Copy link
Contributor

@haerdib haerdib commented Nov 11, 2021

fixes #456

@haerdib haerdib changed the title Fixes event decoding in cli Fix event decoding in cli Nov 11, 2021
@haerdib haerdib changed the title Fix event decoding in cli Fix event decoding in cli + remove timout in demos Nov 11, 2021
@haerdib haerdib changed the title Fix event decoding in cli + remove timout in demos Fix event decoding in cli + remove timeout in demos Nov 11, 2021
Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

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

Looks good, although I am not 100% convinced that his actually fixes the issue.

Can you convince me? :)

Comment on lines +547 to +548
let ret: ProcessedParentchainBlockArgs = _chain_api
.wait_for_event::<ProcessedParentchainBlockArgs>(
Copy link
Contributor

Choose a reason for hiding this comment

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

So here we waited for BlockConfirmed args. Did block confirm change over time? If not, I am not 100% convinced that this solves the issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm honestly not 100% sure what the previous problem was, but I think it might have been partially fixed by cleaning up the Confirmations on the worker side th PR #501 and now fixing the Block listening event... But the tests pass now without a Timeout. Is that not convincing enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

If they pass consistently, I am convinced. :D

@haerdib haerdib requested a review from murerfel November 15, 2021 09:26
@haerdib haerdib self-assigned this Nov 15, 2021
Comment on lines -76 to +75
$TIMEOUT ${CLIENT} trusted set-balance ${ICGACCOUNTALICE} ${AMOUNTSHIELD} --mrenclave ${MRENCLAVE} --direct
${CLIENT} trusted set-balance ${ICGACCOUNTALICE} ${AMOUNTSHIELD} --mrenclave ${MRENCLAVE} --direct
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing the timeout means that we potentially wait forever? Or what was the motivation?

Copy link
Contributor Author

@haerdib haerdib Nov 15, 2021

Choose a reason for hiding this comment

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

Yes, that is true. But since this is used as a CI test, I think we should know if no fitting confirmation is issued by the parentchain.

Copy link
Contributor Author

@haerdib haerdib Nov 15, 2021

Choose a reason for hiding this comment

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

So my motiviation: Wait forever such that we know something is wrong.

Comment on lines -664 to +667
struct ProposedSidechainBlockArgs {
struct ProcessedParentchainBlockArgs {
Copy link
Contributor

Choose a reason for hiding this comment

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

Small but significant change in how to read this code 😄

Copy link
Contributor

@murerfel murerfel left a comment

Choose a reason for hiding this comment

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

LGTM - just some minor questions for my own understanding ☺️

@haerdib haerdib merged commit 36469af into master Nov 16, 2021
@haerdib haerdib deleted the fix-event-listening branch November 16, 2021 09:48
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.

cli hangs for indirect invocation calls because it waits for BlockConfirmed

4 participants