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

Update develop with master #2189

Merged
merged 22 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
12b8378
Merge pull request #2143 from hirosystems/develop
zone117x Oct 25, 2024
f44a172
chore(release): 8.2.0 [skip ci]
semantic-release-bot Oct 25, 2024
d13f947
chore: package.json & package-lock.json to reduce vulnerabilities (#2…
CharlieC3 Nov 1, 2024
e165346
chore: package.json & package-lock.json to reduce vulnerabilities (#2…
CharlieC3 Nov 1, 2024
e3c30c6
chore: stacks-blockchain/dist-tool/package.json & stacks-blockchain/d…
CharlieC3 Nov 1, 2024
9da4dcd
fix: indexes to optimize principal-based etag db lookups (#2157)
zone117x Nov 5, 2024
f0176a0
chore(release): 8.2.1 [skip ci]
semantic-release-bot Nov 5, 2024
2370799
fix(rosetta): add support for Nakamoto coinbase for unlock events (#2…
obycode Nov 10, 2024
c75e9fb
chore(release): 8.2.2 [skip ci]
semantic-release-bot Nov 10, 2024
9b7e97d
feat: option to modify estimated fees in /v2/fees/transaction proxy (…
zone117x Nov 19, 2024
d344a79
chore(release): 8.3.0-beta.1 [skip ci]
semantic-release-bot Nov 19, 2024
b99c672
fix: socket-io reconnection bug (#2174)
zone117x Nov 21, 2024
aa151db
chore(release): 8.3.0-beta.2 [skip ci]
semantic-release-bot Nov 21, 2024
44f8109
Merge pull request #2177 from hirosystems/develop
zone117x Nov 26, 2024
1f4125d
fix: bug in multisig tx decoding (#2181)
zone117x Dec 10, 2024
52cec8a
chore(release): 8.2.3 [skip ci]
semantic-release-bot Dec 10, 2024
361c4d4
Merge branch 'master' into beta
zone117x Dec 10, 2024
1dd0328
Merge pull request #2178 from hirosystems/beta
zone117x Dec 10, 2024
5ae6833
chore(release): 8.3.0 [skip ci]
semantic-release-bot Dec 10, 2024
64ad5bc
chore: package.json & package-lock.json to reduce vulnerabilities (#2…
CharlieC3 Dec 16, 2024
5e450da
Merge branch 'develop' into master
CharlieC3 Dec 17, 2024
f00f286
chore(release): 8.4.0 [skip ci]
semantic-release-bot Dec 17, 2024
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
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
## [8.3.0](https://github.com/hirosystems/stacks-blockchain-api/compare/v8.2.3...v8.3.0) (2024-12-10)


### Features

* option to modify estimated fees in /v2/fees/transaction proxy ([#2172](https://github.com/hirosystems/stacks-blockchain-api/issues/2172)) ([9b7e97d](https://github.com/hirosystems/stacks-blockchain-api/commit/9b7e97d8d3faf94b1d17162cb2bf17f214afe172))


### Bug Fixes

* socket-io reconnection bug ([#2174](https://github.com/hirosystems/stacks-blockchain-api/issues/2174)) ([b99c672](https://github.com/hirosystems/stacks-blockchain-api/commit/b99c672112c92f92bf1421f3eae44b6861292de9))

## [8.2.3](https://github.com/hirosystems/stacks-blockchain-api/compare/v8.2.2...v8.2.3) (2024-12-10)


### Bug Fixes

* bug in multisig tx decoding ([#2181](https://github.com/hirosystems/stacks-blockchain-api/issues/2181)) ([1f4125d](https://github.com/hirosystems/stacks-blockchain-api/commit/1f4125dacfe98ccefacf77f2e0f3ed33026f25ad))

## [8.2.2](https://github.com/hirosystems/stacks-blockchain-api/compare/v8.2.1...v8.2.2) (2024-11-10)


### Bug Fixes

* **rosetta:** add support for Nakamoto coinbase for unlock events ([#2162](https://github.com/hirosystems/stacks-blockchain-api/issues/2162)) ([2370799](https://github.com/hirosystems/stacks-blockchain-api/commit/2370799b8b29a74b0b273a6662a91f376e857fdc))

## [8.2.1](https://github.com/hirosystems/stacks-blockchain-api/compare/v8.2.0...v8.2.1) (2024-11-05)


### Bug Fixes

* indexes to optimize principal-based etag db lookups ([#2157](https://github.com/hirosystems/stacks-blockchain-api/issues/2157)) ([9da4dcd](https://github.com/hirosystems/stacks-blockchain-api/commit/9da4dcde18291d0e251820cc2e8fadaca568a4af))

## [8.2.0](https://github.com/hirosystems/stacks-blockchain-api/compare/v8.1.2...v8.2.0) (2024-10-25)


### Features

* allow stackerdb_chunks messages to be stored in db raw events table ([d03f2ef](https://github.com/hirosystems/stacks-blockchain-api/commit/d03f2ef940fd90e9b9e99d9b3636aaf2d348f0e7))
* include `tenure-height` in block responses ([#2134](https://github.com/hirosystems/stacks-blockchain-api/issues/2134)) ([07426a2](https://github.com/hirosystems/stacks-blockchain-api/commit/07426a2e0060029ffe908597120a820c16cb3db3))
* ingest `signer_signature` from `/new_block` event and expose in new endpoint ([#2125](https://github.com/hirosystems/stacks-blockchain-api/issues/2125)) ([c389154](https://github.com/hirosystems/stacks-blockchain-api/commit/c389154a47fee6f382be2343abdb9e01bc093300))


### Bug Fixes

* event-replay block parsing outdated and incorrect ([#2133](https://github.com/hirosystems/stacks-blockchain-api/issues/2133)) ([2cd69fa](https://github.com/hirosystems/stacks-blockchain-api/commit/2cd69face8953541fcc2697a5a3b7b350de33383))

## [8.1.2](https://github.com/hirosystems/stacks-blockchain-api/compare/v8.1.1...v8.1.2) (2024-10-21)


Expand Down
2 changes: 1 addition & 1 deletion client/src/socket-io/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class StacksApiSocketClient {

handleSubscription(topic: Topic, subscribe = false, listener?: (...args: any[]) => void) {
const subsQuery = this.socket.io.opts.query?.subscriptions as string | undefined;
const subscriptions = new Set(subsQuery?.split(',') ?? []);
const subscriptions = new Set(subsQuery ? subsQuery.split(',') : []);
if (subscribe) {
this.socket.emit('subscribe', topic, error => {
if (error) console.error(`Error subscribing: ${error}`);
Expand Down
59 changes: 59 additions & 0 deletions migrations/1730724278636_principal_activity_txs_idx.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
exports.up = pgm => {
// Indexes used to speed up queries in the `getPrincipalLastActivityTxIds` function:
// https://github.com/hirosystems/stacks-blockchain-api/blob/e3c30c6e0cb14843d5f089b64010d738b0b27763/src/datastore/pg-store.ts#L4440-L4492
// See issue https://github.com/hirosystems/stacks-blockchain-api/issues/2147

pgm.createIndex(
'ft_events',
[
'sender',
'recipient',
{ name: 'block_height', order: 'DESC' },
{ name: 'microblock_sequence', order: 'DESC' },
{ name: 'tx_index', order: 'DESC' },
{ name: 'event_index', order: 'DESC' }
],
{
name: 'idx_ft_events_optimized',
where: 'canonical = TRUE AND microblock_canonical = TRUE',
}
);

pgm.createIndex(
'nft_events',
[
'sender',
'recipient',
{ name: 'block_height', order: 'DESC' },
{ name: 'microblock_sequence', order: 'DESC' },
{ name: 'tx_index', order: 'DESC' },
{ name: 'event_index', order: 'DESC' }
],
{
name: 'idx_nft_events_optimized',
where: 'canonical = TRUE AND microblock_canonical = TRUE',
}
);

pgm.createIndex(
'mempool_txs',
[
'sender_address',
'sponsor_address',
'token_transfer_recipient_address',
{ name: 'receipt_time', order: 'DESC' }
],
{
name: 'idx_mempool_txs_optimized',
where: 'pruned = FALSE',
}
);
};

/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
exports.down = pgm => {
pgm.dropIndex('ft_events', ['sender', 'recipient', 'block_height', 'microblock_sequence', 'tx_index', 'event_index'], { name: 'idx_ft_events_optimized' });
pgm.dropIndex('nft_events', ['sender', 'recipient', 'block_height', 'microblock_sequence', 'tx_index', 'event_index'], { name: 'idx_nft_events_optimized' });
pgm.dropIndex('mempool_txs', ['sender_address', 'sponsor_address', 'token_transfer_recipient_address', 'receipt_time'], { name: 'idx_mempool_txs_optimized' });
};
Loading
Loading