-
Notifications
You must be signed in to change notification settings - Fork 2
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
refactor: fetch reward min blocks #101
refactor: fetch reward min blocks #101
Conversation
be1f187
to
126c3be
Compare
126c3be
to
575fb3e
Compare
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.
The data from the fullnode is used with the name rewardMinBlocks
but it is set on the initial state as minRewardBlocks
, but I could not find where one is converted to the other.
packages/daemon/src/utils/helpers.ts
Outdated
export const getFullnodeHttpUrl = () => { | ||
const protocol = USE_SSL ? 'https://' : 'http://'; | ||
|
||
return `${protocol}${FULLNODE_HOST}/v1a/`; |
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.
If the wallet-service runs on nodejs we can use path.join
to safely join the url parts.
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.
Updated it to use URL in dfe48c8
Refactored it to use |
8e8989a
to
a4c0b44
Compare
* chore: added workflow to deploy the daemon * chore: added deploy script to the wallet-service * chore: removed tests from tsconfig * chore: updated daemon's Dockerfile to use yarn * feat: fetching reward_min_blocks from the fullnode's API * refactor: removed BLOCK_REWARD_LOCK from config * refactor: renamed minRewardBlocks to rewardMinBlocks * refactor: using URL instead of manually creating the urls
* chore: added workflow to deploy the daemon * chore: added deploy script to the wallet-service * chore: removed tests from tsconfig * chore: updated daemon's Dockerfile to use yarn * feat: fetching reward_min_blocks from the fullnode's API * refactor: removed BLOCK_REWARD_LOCK from config * refactor: renamed minRewardBlocks to rewardMinBlocks * refactor: using URL instead of manually creating the urls
* chore: added workflow to deploy the daemon * chore: added deploy script to the wallet-service * chore: removed tests from tsconfig * chore: updated daemon's Dockerfile to use yarn * feat: fetching reward_min_blocks from the fullnode's API * refactor: removed BLOCK_REWARD_LOCK from config * refactor: renamed minRewardBlocks to rewardMinBlocks * refactor: using URL instead of manually creating the urls
* chore: added workflow to deploy the daemon * chore: added deploy script to the wallet-service * chore: removed tests from tsconfig * chore: updated daemon's Dockerfile to use yarn * feat: fetching reward_min_blocks from the fullnode's API * refactor: removed BLOCK_REWARD_LOCK from config * refactor: renamed minRewardBlocks to rewardMinBlocks * refactor: using URL instead of manually creating the urls
* chore: removed old service files * chore: added package changes * chore: initial project structure * feat: added sync machine to the project with mocked services * feat: added services * feat: added services, utils and types * feat: added websocket actor * feat: added LRU cache and md5hash * chore: basic eslintrc * fix: added voided guard to check if a transaction is already voided before processing it * tests: added multiple tests for db methods * chore: removed tests from tslint and added sequelize to dependencies * refactor: moved guards and actions to separate files and improved readability * tests: 100% coverage on guards * chore: added sequelizerc * feat: throw if storing event lower than current * chore: removed seeders as they're no longer needed * chore: added daemon to a workspace * chore: moved tsconfig to daemon workspace * chore: added CI to pull_request as well * chore: moved remaining files * chore: added wallet-service as a package * chore: removed .serverless from git * chore: updated github workflow to setup the environment * chore: updated daemon package with reliable-integrations * chore: removed wallet-service's webpack from git * chore: rollback CI workflow * chore: renamed daemon service name * chore: CI workflow setting up databases and running with nix * tests: fixed failing test that does not make sense anymore * chore: updated aws-sdk to v3 * chore: added workflow to deploy the daemon * chore: added deploy script to the wallet-service * chore: updated daemon's Dockerfile to use yarn * chore: updated nodejs on codebuild * chore: enabling corepack * chore: force yarn version to 3.4.1 * refactor: fetch reward min blocks (#101) * chore: added workflow to deploy the daemon * chore: added deploy script to the wallet-service * chore: removed tests from tsconfig * chore: updated daemon's Dockerfile to use yarn * feat: fetching reward_min_blocks from the fullnode's API * refactor: removed BLOCK_REWARD_LOCK from config * refactor: renamed minRewardBlocks to rewardMinBlocks * refactor: using URL instead of manually creating the urls * fix: issues from last rebase * tests: mocking fetchRewardMinBlocks * tests: mocking reward min blocks and fix fullnode URL * chore: re-added tests * feat: healthcheck API (#110) feat: daemon healthcheck (#111) --------- Co-authored-by: Luis Helder <[email protected]>
Fixes #95
Acceptance Criteria
Security Checklist