Releases: razor-network/oracle-node
2.1.1
Changes featured in v2.1.1
release
Features:
- RPC Manager Implementation: Automatically switches to alternate RPCs during downtime.
- Block Monitor: Ensures correct block reporting and switches to the next best RPC if needed.
- Retry Mechanism Exit: Stops retries when state times out, allowing seamless state transitions.
Fixes:
- Fatal Logs Removal: Prevents panic in GetTxnOpts() due to nonce errors.
- Proposed Blocks Validation: Adds validation to ensure that the index of proposed blocks in the sorted proposed blocks array remains within limits.
Enhancements:
- Updated Dependencies: Synchronized with Go 1.23 and Geth 1.14.11.
- Expanded Config Ranges: Increased config parameter limits for greater flexibility.
- Optimized Transactions: Removed transaction mining status checks for voting transactions to improve state execution.
Refactor:
- Unified Retry Mechanism: Standardized contract call retries for consistency.
What's Changed from v2.0.0
- chore: merge main to develop post Releases/v2.0.0 by @Yashk767 in #1250
- refactor: added context with timeout to retry mechanism by @Yashk767 in #1235
- refactor: replaced retry implementation inside functions with generic retry function by @Yashk767 in #1252
- fix: added context parameter to functions to sync with updated generic retry function to make build successful by @Yashk767 in #1256
- refactor: replaced SKL with sFuel as a gas token in logs by @Yashk767 in #1253
- feat: added commitment verification layer for data during reveal after removing waitForBlockCompletion check for voting transactions by @Yashk767 in #1254
- chore: updated retry parameters to check transaction mined status by @Yashk767 in #1255
- chore: revised max/min value for config parameters by @Yashk767 in #1257
- chore: updated go and geth version by @Yashk767 in #1259
- feat: Implemented RPC Manager for RPC calls by @Yashk767 in #1260
- refactor: removed fatal logs from GetTxnOpts() by @Yashk767 in #1261
- fix: removed cancel context being called immediately after creation by @Yashk767 in #1265
- refactor: added tests for rpc module by @Yashk767 in #1266
- fix: switch RPC if block number is less than last recorded block number by @Yashk767 in #1264
- refactor: fetched block number from block monitor module in voting process by @Yashk767 in #1269
- fix: added validation to check if index to fetch element is within limit by @Yashk767 in #1270
- fix: setconfig command fails on new vm for the first run of a staker by @Yashk767 in #1271
- ci: updated actions/cache from v2 to v4 by @Yashk767 in #1272
- Releases/v2.1.0 by @Yashk767 in #1263
- ci: update public RPC in tests to ensure CI runs successfully by @Yashk767 in #1274
- chore: updated oracle node version to v2.1.1 by @Yashk767 in #1275
Full Changelog: v2.0.0...v2.1.1
2.1.0
Note: This release was not published due to an error from workflow failure.
Changes featured in v2.1.0
release
Features:
- RPC Manager Implementation: Automatically switches to alternate RPCs during downtime.
- Block Monitor: Ensures correct block reporting and switches to the next best RPC if needed.
- Retry Mechanism Exit: Stops retries when state times out, allowing seamless state transitions.
Fixes:
- Fatal Logs Removal: Prevents panic in GetTxnOpts() due to nonce errors.
- Proposed Blocks Validation: Adds validation to ensure that the index of proposed blocks in the sorted proposed blocks array remains within limits.
Enhancements:
- Updated Dependencies: Synchronized with Go 1.23 and Geth 1.14.11.
- Expanded Config Ranges: Increased config parameter limits for greater flexibility.
- Optimized Transactions: Removed transaction mining status checks for voting transactions to improve state execution.
Refactor:
- Unified Retry Mechanism: Standardized contract call retries for consistency.
Release Notes
- chore: merge main to develop post Releases/v2.0.0 by @Yashk767 in #1250
- refactor: added context with timeout to retry mechanism by @Yashk767 in #1235
- refactor: replaced retry implementation inside functions with generic retry function by @Yashk767 in #1252
- fix: added context parameter to functions to sync with updated generic retry function to make build successful by @Yashk767 in #1256
- refactor: replaced SKL with sFuel as a gas token in logs by @Yashk767 in #1253
- feat: added commitment verification layer for data during reveal after removing waitForBlockCompletion check for voting transactions by @Yashk767 in #1254
- chore: updated retry parameters to check transaction mined status by @Yashk767 in #1255
- chore: revised max/min value for config parameters by @Yashk767 in #1257
- chore: updated go and geth version by @Yashk767 in #1259
- feat: Implemented RPC Manager for RPC calls by @Yashk767 in #1260
- refactor: removed fatal logs from GetTxnOpts() by @Yashk767 in #1261
- fix: removed cancel context being called immediately after creation by @Yashk767 in #1265
- refactor: added tests for rpc module by @Yashk767 in #1266
- fix: switch RPC if block number is less than last recorded block number by @Yashk767 in #1264
- refactor: fetched block number from block monitor module in voting process by @Yashk767 in #1269
- fix: added validation to check if index to fetch element is within limit by @Yashk767 in #1270
- fix: setconfig command fails on new vm for the first run of a staker by @Yashk767 in #1271
- ci: updated actions/cache from v2 to v4 by @Yashk767 in #1272
- Releases/v2.1.0 by @Yashk767 in #1263
Full Changelog: v2.0.0...v2.1.0
2.0.0
The Oracle node v2.0.0
supports latest razor-network contracts having epoch time set to 7.5 minutes deployed on Europa Defi chain.
What's Changed
- chore: merge feature/v2.0.0 to develop by @Yashk767 in #1242
- hotfix: updated retry parameters and default timeouts by @Yashk767 in #1246
- hotfix: update epoch length to 7.5 minutes by @Yashk767 in #1247
- hotfix: updated mainnet addresses to 7.5 minute epoch contract addresses by @Yashk767 in #1248
- Releases/v2.0.0 by @Yashk767 in #1249
Full Changelog: 1.2.0...v2.0.0
1.2.0
Changes featured in v1.2.0
release
Fixes
- fix: APIs returning response of data type array of json objects not supported.
- fix: Fetching private key every time increases goroutine count
- fix: Every time a new http client was introduced for each request increases goroutine count
Faster processing
- Processing of jobs and collections concurrently.
- Caching jobs and collections.
- Optimised GetIteration implementation with concurrency.
- Optimised
CalculateBiggestStake
using batch calls forgetStakeSnapshot
contract calls
RPC Optimisation
- Reduce GetLatestBlock and GetStakerId calls
Refactor changes
- Refactor: Flag input function refactored using a single generic function
- Refactor: Config getters and setters module refactored using a generic function.
- Refactor: Refactored tests by removing redundant mocks and test util functions.
Config changes
- Updated default values for
logFileMaxAge
andlogFileMaxBackups
1.1.0-patch.1
1.1.0
Changes featured in release v1.1.0
- Added support for fetching API keys from the environment for requests.
- Introduced support for POST jobs.
- Jobs can now return hex values.
- Version number is now included in logs.
- Updated to the latest versions of go-ethereum, go, and other dependencies.
- Resolved all major Dependabot alerts by updating and installing node dependencies with the latest node and npm versions.
- Modified the default value and functionality of gasLimitOverride. It will now be used every time there's a gas estimation failure.
- Commit data will now be stored even if the transaction fails.
- Nil values for the Alternate provider in the config are no longer supported.
- Support for uniswap v2 and v3 data feeds returning results in the form of hex array and hex respectively is added.
What's Changed
Pull Requests
- Releasing 1.0.6 by @yohanelly95 in #1102
- chore: Merging CI changes to main by @SkandaBhat in #1153
- Releases/v1.1.0 by @SkandaBhat in #1163
Full Changelog: v1.0.6...v1.1.0
1.0.7-alpha.2
DO NOT USE IN PRODUCTION!
Alpha release, as its in testing phase. Contains testnet contract-addresses and parameters
This release is the 3rd alpha release for v1.0.7
so it will cover all issues from 1st and 2nd alpha release v1.0.7-alpha
and v1.0.7-alpha.1
respectively with additional issues described below,
Issues added in this release from v1.0.7-alpha
→ v1.0.7-alpha.1
are:
- Simplified GetGasLimit on gas estimation failure
- README updates for
v1.0.7
changes
What's Changed from v1.0.7-alpha.1
-> v1.0.7-alpha.2
- Releasing 1.0.6 by @yohanelly95 in #1102
- Updated ReadMe for
v1.0.7
by @Yashk767 in #1137 - Simplified
GetGasLimit
on gas estimation failure by @Yashk767 in #1138 - updated version to v1.0.7-alpha.2 by @Yashk767 in #1139
New Contributors
- @yohanelly95 made their first contribution in #1102
Full Changelog: v1.0.7-alpha.1...v1.0.7-alpha.2
1.0.7-alpha.1
DO NOT USE IN PRODUCTION!
Alpha release, as its in testing phase. Contains testnet contract-addresses and parameters
This release is the 2nd alpha release for v1.0.7
so it will cover all issues from 1st alpha release v1.0.7-alpha
and additional issues described below,
Issues added in this release from v1.0.7-alpha
→ v1.0.7-alpha.1
are:
- Update go-ethereum version to v1.12.0 (#1085)
- Update go and go-ethereum in Dockerfile (#1124)
- Fix all the major dependabot alerts (#1126)
- Update go-ethereum version to
1.12.2
instead of1.12.0
(#1128)
The release also includes features that are moved from planned v1.0.6-patch.1
release to v1.0.7
release:
- Reveal fails with
Invalid Signature
(#1059) - Reveal doesn't happen if commit data isn't stored in the file system(#1098)
- Don't set alternate provider if nil value is provided in config.sh (#1112)
- Replace generic retry with normal retry for
EstimateGasWithRetry
andSuggestGasPriceWithRetry
(#1110)
What's Changed
- Updated go and go ethereum version in Dockerfile by @Yashk767 in #1125
- Fetched
releases/v1.0.6
branch updates toreleases/v1.0.7
branch by @Yashk767 in #1116 - Merging
go1.21.1-support
branch toreleases/v1.0.7
branch by @Yashk767 in #1123 - Ran npm installl with updated node and npm versions to fix dependabot alerts by @Yashk767 in #1127
- Updated go ethereum version 1.12.2 by @Yashk767 in #1129
- updated oracle node version to
v1.0.7-alpha.1
by @Yashk767 in #1130 - Degraded go version to 1.19 for publish-github-release to support ghr by @Yashk767 in #1132
- Replaced
go1.21.1
togo1.21
in go.mod file by @Yashk767 in #1135 - revert degrading go version to 1.19 for publish-github-release for ghr support by @Yashk767 in #1133
Full Changelog: v1.0.7-alpha...v1.0.7-alpha.1
1.0.6-patch.1.alpha.2
DO NOT USE IN PRODUCTION!
Alpha release, as its in testing phase. Contains testnet contract-addresses and parameters
What's Changed from 1.0.6-patch1-alpha
-> 1.0.6-patch.1.alpha.2
- Commit data Fix by @Yashk767 in #1111
- Removed default alternate provider from set config script by @Yashk767 in #1113
- Updated version to v1.0.6-patch.1.alpha.2 by @Yashk767 in #1114
Full Changelog: v1.0.6-patch1-alpha...v1.0.6-patch.1.alpha.2
1.0.6-patch1-alpha
DO NOT USE IN PRODUCTION!
Alpha release, as its in testing phase. Contains testnet contract-addresses and parameters
What's Changed from 1.0.6 -> 1.0.6-patch1-alpha
- Fetched
gasLimit
value from config ifestimateGas
fails by @Yashk767 in #1108 - Updated Release parameters for 1.0.6-patch1-alpha by @Yashk767 in #1109
Full Changelog: v1.0.6...v1.0.6-patch1-alpha