-
Notifications
You must be signed in to change notification settings - Fork 4
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
RED-201: Network Generated Transactions #240
base: dev
Are you sure you want to change the base?
Conversation
…tting the previous records
…w fields to db. Expose new functions in shardus to allow for adding network transactions and verifiers.Minor cleanup of unused logs
…lidation for this. Do not add tx that has already been added to txadd
…to txList and implement reset function
…nd verify in handler
* move module functions around * organize ServiceQueue module around existing module structure * add syncTxListFromArchiver func * chore: lint ServiceQueue * chore: move variables above routes * switch to using random archiver for syncing tx list * add syncing tx list step to restore callback * remove unused import * add await to sync tx list func call ;)
code clean up
chore: Add debug flag for NTP bogus offset decrements chore: Update time synchronization error messages and comment debug endpoint chore: Remove commented debug endpoint for NTP bogus offset decrements
Bumps the npm_and_yarn group with 4 updates in the / directory: [express](https://github.com/expressjs/express), [socket.io](https://github.com/socketio/socket.io), [braces](https://github.com/micromatch/braces) and [tar](https://github.com/isaacs/node-tar). Updates `express` from 4.16.4 to 4.19.2 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](expressjs/express@4.16.4...4.19.2) Updates `socket.io` from 2.4.1 to 2.5.0 - [Release notes](https://github.com/socketio/socket.io/releases) - [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md) - [Commits](socketio/socket.io@2.4.1...2.5.0) Updates `braces` from 3.0.2 to 3.0.3 - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](micromatch/braces@3.0.2...3.0.3) Updates `tar` from 6.1.15 to 6.2.1 - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](isaacs/node-tar@v6.1.15...v6.2.1) --- updated-dependencies: - dependency-name: express dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: socket.io dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: braces dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: tar dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <[email protected]>
fix: add logging to 404 case in dumpTree
remove comments
…tion on fetchLatestCycle
Make safetyNum optional
…ameters and payload) (#255) * feat: adding replay attack protection for debug endpoints' payloads * chore : formatting
82f6011
to
e830dd0
Compare
// get latest entry for node in txList. and if it is init then we inject otherwise continue | ||
// first iterate over txlist backwards and get first entry that has public key of node | ||
const txListEntry = reversedTxList.find((entry) => entry.tx.txData.publicKey === node.publicKey) | ||
if (txListEntry && txListEntry.tx.type !== 'nodeInitReward') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking this as techdebt. We should replace with app.getFinalNodeTXName() an similar functions so that the final TX names, shape and creation come from the app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is being refactored by Phillipp as this shouldn’t be in the shardus layer but rather in the app layer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the shutdown impl in update record is going to be changed when he pushes that tomorrow
@@ -1742,6 +1763,19 @@ class Shardus extends EventEmitter { | |||
return latestCycle ? latestCycle.active : 0 | |||
} | |||
|
|||
fastIsPicked(numberToPick: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we need to cut and paste this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I see it is wrapping and for nodes. A modified name would be nice. fastIsPickedActiveNodes or similar
txadd: [], | ||
txremove: [], | ||
txlisthash: '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should be using camel case for cycle record fields. thats the pattern for all other fields in the cycle record
No description provided.