-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add max_queued_txs column + minor client improvement (#25)
* Add max_queued_txs column * Implement logic (WIP) * Serialize errors * Update errors in client + update logic * Instrument remaining db methods + fix * Fix in code condition * Reenable test * Fix and refactor tests
- Loading branch information
Showing
12 changed files
with
520 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ALTER TABLE relayers | ||
ADD COLUMN max_queued_txs BIGINT NOT NULL DEFAULT 20, | ||
ADD CONSTRAINT check_max_queued_txs CHECK (max_queued_txs > max_inflight_txs); | ||
|
||
UPDATE relayers | ||
SET max_queued_txs = GREATEST(max_inflight_txs, 20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.