Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4a79ce8
cycles.ts
intls Feb 5, 2025
c4d9bca
server.ts
intls Feb 5, 2025
313ecfd
repair_missing_cycle.ts
intls Feb 5, 2025
16ea2fd
API.ts
intls Feb 5, 2025
4f8a824
archiver_data_patcher.ts
intls Feb 5, 2025
a8279f9
AccountDataProvider.ts
intls Feb 5, 2025
7471910
Merge branch 'dev' into errors
intls Feb 7, 2025
c46a01f
Merge branch 'dev' into errors
intls Feb 12, 2025
35d1221
Merge branch 'dev' into errors
intls Feb 14, 2025
5b3c757
Merge branch 'dev' into errors
intls Feb 17, 2025
6c92760
Merge branch 'dev' into errors
intls Feb 18, 2025
044cdaf
Merge branch 'dev' into errors
intls Feb 23, 2025
8738527
Merge branch 'dev' into errors
intls Feb 26, 2025
f6a03d5
Merge branch 'dev' into errors
intls Feb 28, 2025
cfe4333
Merge branch 'dev' into errors
intls Mar 3, 2025
4baa977
Update deps - dev
mhanson-github Mar 4, 2025
8d716cb
3.7.0-prerelease.0
mhanson-github Mar 4, 2025
062f7b2
Merge branch 'dev' into errors
intls Mar 4, 2025
31edc51
feat : add appropriate ShardKey checks
abdulazeem-tk4vr Feb 25, 2025
014e49e
feat: get tx id from appliedReceipt.tx
aniketdivekar Feb 27, 2025
086ecc3
fix : corrected the voting calculation mistake for required signs
abdulazeem-tk4vr Feb 27, 2025
c41ba08
added ajv validation for txId in global tx receipt
aniketdivekar Feb 28, 2025
b3e52ce
fix: update voting group count validation and logging for node length…
abdulazeem-tk4vr Mar 4, 2025
29dc0df
workaround to allow global tx receipt for the first `x` cycle during …
PudgyPug Mar 4, 2025
401ea65
Update deps
mhanson-github Mar 5, 2025
b5a238c
3.7.0-prerelease.1
mhanson-github Mar 5, 2025
8604171
Merge branch 'dev' into errors
intls Mar 6, 2025
0110fee
Update server.ts
intls Mar 6, 2025
2d3e72f
Update server.ts
intls Mar 6, 2025
70aa70e
Update server.ts
intls Mar 6, 2025
e875823
Update ci.yml (#154)
BelfordZ Mar 7, 2025
f99064a
Merge branch 'dev' into errors
intls Mar 8, 2025
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
branches:
- dev
- main
- mainnet-*
issue_comment:
inputs:
workflowBranch:
Expand Down
45 changes: 25 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shardeum-foundation/archiver",
"version": "3.6.0-prerelease.0",
"version": "3.7.0-prerelease.1",
"engines": {
"node": "18.19.1"
},
Expand Down Expand Up @@ -89,10 +89,10 @@
"typescript-json-schema": "0.51.0"
},
"dependencies": {
"@shardeum-foundation/lib-archiver-discovery": "1.2.0-prerelease.0",
"@shardeum-foundation/lib-crypto-utils": "4.2.0-prerelease.0",
"@shardeum-foundation/lib-net": "1.5.0-prerelease.0",
"@shardeum-foundation/lib-types": "1.3.0-prerelease.0",
"@shardeum-foundation/lib-archiver-discovery": "1.3.0-prerelease.0",
"@shardeum-foundation/lib-crypto-utils": "4.3.0-prerelease.0",
"@shardeum-foundation/lib-net": "1.6.0-prerelease.0",
"@shardeum-foundation/lib-types": "1.4.0-prerelease.1",
"@ethereumjs/tx": "5.0.0",
"@ethereumjs/util": "9.0.0",
"@fastify/cors": "8.5.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/archiver_data_patcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const runProgram = async (): Promise<void> => {
}
}

const totalCycles = await CycleDB.queryCyleCount()
const totalCycles = await CycleDB.queryCycleCount()
const totalAccounts = await AccountDB.queryAccountCount()
const totalTransactions = await TransactionDB.queryTransactionCount()
const totalReceipts = await ReceiptDB.queryReceiptCount()
Expand Down
2 changes: 1 addition & 1 deletion scripts/repair_missing_cycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const start = async (): Promise<void> => {
}
await dbstore.initializeDB(config)

const lastStoredCycleCount = await CycleDB.queryCyleCount()
const lastStoredCycleCount = await CycleDB.queryCycleCount()
const lastStoredCycle = (await CycleDB.queryLatestCycleRecords(1))[0]
console.log('lastStoredCycleCount', lastStoredCycleCount, 'lastStoredCycleCounter', lastStoredCycle.counter)

Expand Down
2 changes: 1 addition & 1 deletion src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ export function registerRoutes(server: FastifyInstance<Server, IncomingMessage,
reply.send({ success: false, error: result.error })
return
}
const totalCycles = await CycleDB.queryCyleCount()
const totalCycles = await CycleDB.queryCycleCount()
const totalAccounts = await AccountDB.queryAccountCount()
const totalTransactions = await TransactionDB.queryTransactionCount()
const totalReceipts = await ReceiptDB.queryReceiptCount()
Expand Down
2 changes: 2 additions & 0 deletions src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export interface Config {
maxRecordsPerRequest: number // this is the equiavlent of the accountBucketSize config variable used by the validators to fetch records from the archiver
multisigKeysSyncFromNetworkInternal: number // in seconds
minCycleConfirmationsToSave: number // this is the minimum numbers of nodes that we need to a see a cycle from to save it
formingNetworkCycleThreshold: number // CODE REVIEW WARNING: never allow this to be set more than 30. we have some trusted execution until this cycle is reached (specifically allowing global tx receipts) - will be refactored to be avoided
}

let config: Config = {
Expand Down Expand Up @@ -248,6 +249,7 @@ let config: Config = {
maxRecordsPerRequest: 200,
multisigKeysSyncFromNetworkInternal: 600,
minCycleConfirmationsToSave: -1,
formingNetworkCycleThreshold: 30
}
// Override default config params from config file, env vars, and cli args
export async function overrideDefaultConfig(file: string): Promise<void> {
Expand Down
4 changes: 2 additions & 2 deletions src/Data/AccountDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface WrappedData {
accountId: string
/** hash of the data blob */
stateId: string
/** data blob opaqe */
/** data blob opaque */
data: unknown
/** Timestamp */
timestamp: number
Expand Down Expand Up @@ -177,7 +177,7 @@ export const validateGlobalAccountReportRequest = (
}
/**
*
* This function is contructed to provide data in similar way as the `getAccountDataByRangeSmart` function in the validator
* This function is constructed to provide data in similar way as the `getAccountDataByRangeSmart` function in the validator
* @param payload
* @returns GetAccountDataByRangeSmart
*/
Expand Down
Loading