From 3d3c4cfa4936be0fccce49d9cffb8ee528edcfdc Mon Sep 17 00:00:00 2001 From: Teddy Ding Date: Mon, 1 Jul 2024 22:18:10 -0400 Subject: [PATCH] add debug statement, enable push on branch --- .github/workflows/protocol-build-and-push-snapshot.yml | 1 + .github/workflows/protocol-build-and-push.yml | 1 + protocol/x/clob/abci.go | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/protocol-build-and-push-snapshot.yml b/.github/workflows/protocol-build-and-push-snapshot.yml index e5ff2c8b05..60102ef8d1 100644 --- a/.github/workflows/protocol-build-and-push-snapshot.yml +++ b/.github/workflows/protocol-build-and-push-snapshot.yml @@ -6,6 +6,7 @@ on: # yamllint disable-line rule:truthy - main - 'release/protocol/v[0-9]+.[0-9]+.x' # e.g. release/protocol/v0.1.x - 'release/protocol/v[0-9]+.x' # e.g. release/protocol/v1.x + - 'td/*' jobs: build-and-push-snapshot-dev: diff --git a/.github/workflows/protocol-build-and-push.yml b/.github/workflows/protocol-build-and-push.yml index fc26dd6e69..5d48eaf670 100644 --- a/.github/workflows/protocol-build-and-push.yml +++ b/.github/workflows/protocol-build-and-push.yml @@ -6,6 +6,7 @@ on: # yamllint disable-line rule:truthy - main - 'release/protocol/v[0-9]+.[0-9]+.x' # e.g. release/protocol/v0.1.x - 'release/protocol/v[0-9]+.x' # e.g. release/protocol/v1.x + - 'td/*' jobs: build-and-push-dev: diff --git a/protocol/x/clob/abci.go b/protocol/x/clob/abci.go index 69fbd20191..00ded9d9fd 100644 --- a/protocol/x/clob/abci.go +++ b/protocol/x/clob/abci.go @@ -112,6 +112,10 @@ func EndBlocker( // Poll out all triggered conditional orders from `UntriggeredConditionalOrders` and update state. triggeredConditionalOrderIds := keeper.MaybeTriggerConditionalOrders(ctx) + if len(triggeredConditionalOrderIds) > 0 { + fmt.Printf("!!!!!!! triggeredConditionalOrderIds = %+v !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n", triggeredConditionalOrderIds) + } + // Update the memstore with conditional order ids triggered in the last block. // These triggered conditional orders will be placed in the `PrepareCheckState``. processProposerMatchesEvents.ConditionalOrderIdsTriggeredInLastBlock = triggeredConditionalOrderIds