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

PLT-255 Fixed plutus-pab integration test #496

Conversation

koslambrou
Copy link
Contributor

@koslambrou koslambrou commented Jun 3, 2022

Should fix #451 and fix #473

  • Reorganized the placement of some functions

  • Fixed the awaitSlot blockchain action in plutus-pab as it wasn't
    working. It was using as reference the slot of the last synced block
    instead of the actual current slot.

  • Patched temporarly the PubKey contract so that it waits a bit before
    querying the chain-index. In the future, once we fix the discrepancy
    between information shared between plutus-pab and plutus-chain-index,
    this should be removed.

  • Fixed the number of events that are processed by plutus-chain-index
    once we are in sync with the local node. The reason is that once we
    are fully in sync with the local node, we want to process as much
    information as possible and not wait for the queue to be filled.

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

@koslambrou koslambrou requested a review from a user June 3, 2022 18:09
@koslambrou koslambrou force-pushed the PLT-255-gth-473-plutus-pab-integration-test-failure-with-local-cluster branch from ac6b878 to 632e82e Compare June 4, 2022 17:39
* Reorganized the placement of some functions

* Fixed the `awaitSlot` blockchain action in `plutus-pab` as it wasn't
  working. It was using as reference the slot of the last synced block
  instead of the actual current slot.

* Patched temporarly the PubKey contract so that it waits a bit before
  querying the chain-index. In the future, once we fix the discrepancy
  between information shared between plutus-pab and plutus-chain-index,
  this should be removed.

* Fixed the number of events that are processed by plutus-chain-index
  once we are in sync with the local node. The reason is that once we
  are fully in sync with the local node, we want to process as much
  information as possible and not wait for the queue to be filled.
@koslambrou koslambrou force-pushed the PLT-255-gth-473-plutus-pab-integration-test-failure-with-local-cluster branch from 632e82e to 509722c Compare June 5, 2022 23:07
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

banger

Nice discovery!

plutus-pab-executables/README.md Show resolved Hide resolved
plutus-chain-index/src/Plutus/ChainIndex/Events.hs Outdated Show resolved Hide resolved
* Reorganized the placement of some functions

* Fixed the `awaitSlot` blockchain action in `plutus-pab` as it wasn't
  working. It was using as reference the slot of the last synced block
  instead of the actual current slot.

* Patched temporarly the PubKey contract so that it waits a bit before
  querying the chain-index. In the future, once we fix the discrepancy
  between information shared between plutus-pab and plutus-chain-index,
  this should be removed.

* Fixed the number of events that are processed by plutus-chain-index
  once we are in sync with the local node. The reason is that once we
  are fully in sync with the local node, we want to process as much
  information as possible and not wait for the queue to be filled.
@koslambrou koslambrou force-pushed the PLT-255-gth-473-plutus-pab-integration-test-failure-with-local-cluster branch from be13104 to 7c86a8e Compare June 6, 2022 14:18
@koslambrou koslambrou merged commit c848b36 into main Jun 6, 2022
@koslambrou koslambrou deleted the PLT-255-gth-473-plutus-pab-integration-test-failure-with-local-cluster branch June 6, 2022 19:41
koslambrou added a commit that referenced this pull request Jun 22, 2022
* PLT-255 Fixed plutus-pab integration test

* Reorganized the placement of some functions

* Fixed the `awaitSlot` blockchain action in `plutus-pab` as it wasn't
  working. It was using as reference the slot of the last synced block
  instead of the actual current slot.

* Patched temporarly the PubKey contract so that it waits a bit before
  querying the chain-index. In the future, once we fix the discrepancy
  between information shared between plutus-pab and plutus-chain-index,
  this should be removed.

* Fixed the number of events that are processed by plutus-chain-index
  once we are in sync with the local node. The reason is that once we
  are fully in sync with the local node, we want to process as much
  information as possible and not wait for the queue to be filled.

* PLT-255 Fixed plutus-pab integration test

* Reorganized the placement of some functions

* Fixed the `awaitSlot` blockchain action in `plutus-pab` as it wasn't
  working. It was using as reference the slot of the last synced block
  instead of the actual current slot.

* Patched temporarly the PubKey contract so that it waits a bit before
  querying the chain-index. In the future, once we fix the discrepancy
  between information shared between plutus-pab and plutus-chain-index,
  this should be removed.

* Fixed the number of events that are processed by plutus-chain-index
  once we are in sync with the local node. The reason is that once we
  are fully in sync with the local node, we want to process as much
  information as possible and not wait for the queue to be filled.
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.

Integration Test Failure in pab-executables Uniswap Local Cluster Example Error
1 participant