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

Testnet Sync #4266

Merged
merged 27 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
179ce82
feat: do not cache the sdks to make it possible to have different cli…
0xksure May 4, 2023
38ba6ab
put back yarn release and yarnrc
0xksure May 9, 2023
645eec1
v2.0.3: stable version release
sanchaymittal May 12, 2023
cb2e3db
Merge pull request #4102 from 0xksure/feature/nocache-sdks
sanchaymittal May 12, 2023
adb1879
v2.0.3-alpha.1 alpha release
sanchaymittal May 12, 2023
25a2a5a
v2.0.4-alpha.1 alpha release
sanchaymittal May 12, 2023
734678a
Merge branch 'testnet-prod'
rhlsthrm May 12, 2023
6880fba
v2.0.4-alpha.2 alpha release
sanchaymittal May 12, 2023
1394cbf
Add ERD for reference
just-a-node May 12, 2023
5c7b9ea
WIP: sdk-server
carlomazzaferro May 15, 2023
ec01edd
fix: handle empty chainData cases.
sanchaymittal May 16, 2023
688c868
Update fastpath.ts
wanglonghong May 16, 2023
c6a729b
rmv: mnemonic (#4230)
sanchaymittal May 16, 2023
fa1b541
Merge branch 'main' of https://github.com/connext/nxtp into feat/sdk-…
carlomazzaferro May 16, 2023
e348afe
remove mnemonic
carlomazzaferro May 16, 2023
57ce8c6
Merge pull request #4229 from connext/feat/sdk-server-deployment
carlomazzaferro May 16, 2023
a317b51
Merge pull request #4235 from connext/handle-empty-chaindata
sanchaymittal May 16, 2023
4b1cc4f
increase timeouts (#4226)
carlomazzaferro May 17, 2023
f8f8b00
Merge branch 'testnet-prod'
rhlsthrm May 17, 2023
33d8b50
Sequencer cache persists (#4245)
wanglonghong May 17, 2023
16dd646
Batch pulling from the rabbitmq using amqplib (#4216)
wanglonghong May 17, 2023
4341123
Merge branch 'testnet-prod'
rhlsthrm May 17, 2023
31b58b9
ci(test): no need to include it
wanglonghong May 17, 2023
997f2a4
fix: queue limit setup
wanglonghong May 17, 2023
ffc4e4f
Merge branch 'testnet-prod' into main
wanglonghong May 17, 2023
b3570c6
Fix pending transfers query
preethamr May 18, 2023
c740264
Merge pull request #4265 from connext/fix_carto_query
preethamr May 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/adapters/database/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,10 @@ export const getPendingTransfersByDomains = async (
{
offset,
limit,
order: { by: "nonce", direction: orderDirection },
order: [
{ by: "update_time", direction: orderDirection },
{ by: "nonce", direction: orderDirection },
],
},
)
.run(poolToUse);
Expand Down
12 changes: 9 additions & 3 deletions packages/agents/sequencer/src/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,16 @@ export const makeSubscriber = async () => {
);

if (context.config.messageQueue.subscriber) {
await channel.assertQueue(context.config.messageQueue.subscriber, { durable: true });
const binding = context.config.messageQueue.bindings.find(
(it) => it.target == context.config.messageQueue.subscriber,
);
if (binding) {
const queue = context.config.messageQueue.queues.find((it) => it.name == context.config.messageQueue.subscriber);

if (binding && queue) {
await channel.assertQueue(context.config.messageQueue.subscriber, {
durable: true,
maxLength: queue.queueLimit,
});
await channel.bindQueue(context.config.messageQueue.subscriber, binding?.exchange, binding?.keys[0]);
}

Expand All @@ -108,7 +113,8 @@ export const makeSubscriber = async () => {
// By default subscribe to all configured queues concurrently
await Promise.all(
context.config.messageQueue.bindings.map(async (binding) => {
await channel.assertQueue(binding.target, { durable: true });
const queue = context.config.messageQueue.queues.find((it) => it.name == binding.target);
await channel.assertQueue(binding.target, { durable: true, maxLength: queue?.queueLimit });
await channel.bindQueue(binding.target, binding.exchange, binding.keys[0]);
}),
);
Expand Down