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

RED-201: Network Generated Transactions #240

Open
wants to merge 142 commits into
base: dev
Choose a base branch
from
Open

Conversation

urnotsam
Copy link
Contributor

No description provided.

urnotsam and others added 30 commits August 14, 2024 20:15
…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
* 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 ;)
arhamj and others added 26 commits August 26, 2024 11:02
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]>
…ameters and payload) (#255)

* feat: adding replay attack protection for debug endpoints' payloads

* chore : formatting
// 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') {
Copy link
Contributor

@afostr afostr Sep 11, 2024

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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) {
Copy link
Contributor

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?

Copy link
Contributor

@afostr afostr Sep 11, 2024

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

Comment on lines +749 to +751
txadd: [],
txremove: [],
txlisthash: '',
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.