diff --git a/.github/workflows/check-code.yml b/.github/workflows/check-code.yml
index 119082a8..59c47c66 100644
--- a/.github/workflows/check-code.yml
+++ b/.github/workflows/check-code.yml
@@ -7,10 +7,15 @@ on:
pull_request:
branches: [main]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
check-code:
name: Check Code
runs-on: ubuntu-latest
+ timeout-minutes: 25
permissions:
id-token: write
contents: read
diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml
index eaa0e48f..1fbf17fb 100644
--- a/.github/workflows/test-e2e.yml
+++ b/.github/workflows/test-e2e.yml
@@ -4,10 +4,15 @@ on:
pull_request:
branches: [main]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
integration:
name: End to End Test
runs-on: ubuntu-latest
+ timeout-minutes: 25
permissions:
id-token: write
contents: read
diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml
index 4ea8cd36..a734617b 100644
--- a/.github/workflows/test-integration.yml
+++ b/.github/workflows/test-integration.yml
@@ -4,10 +4,15 @@ on:
pull_request:
branches: [main]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
integration:
name: Integration Test
runs-on: ubuntu-latest
+ timeout-minutes: 25
permissions:
id-token: write
contents: read
diff --git a/src/batch/repo.rs b/src/batch/repo.rs
index 9eac1234..aacf8227 100644
--- a/src/batch/repo.rs
+++ b/src/batch/repo.rs
@@ -13,6 +13,13 @@ pub struct BatchInfo {
pub created_ledger_tx_id: LedgerTxId,
}
+pub struct BatchBroadcastLedgerTx<'a> {
+ pub tx: Transaction<'a, Postgres>,
+ pub batch_info: BatchInfo,
+ pub ledger_tx_id: LedgerTxId,
+ pub(crate) was_newly_set: bool,
+}
+
#[derive(Debug, Clone)]
pub struct Batches {
pool: PgPool,
@@ -255,7 +262,7 @@ impl Batches {
&self,
bitcoin_tx_id: bitcoin::Txid,
wallet_id: WalletId,
- ) -> Result