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

feat(bridge): get dr timestamp agnostic to protocol version upgrades #2534

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
feat(c-bridge): support for protocol upgrade when calculating dr's re…
…solution timestamp
  • Loading branch information
guidiaz committed Dec 12, 2024
commit 7d4fb3605d5e92a8ffd34d2d82be409309317321
2 changes: 1 addition & 1 deletion bridges/centralized-ethereum/src/actors/dr_reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub struct Report {
/// Data Request's unique query id as known by the WitnetOracle contract
pub dr_id: DrId,
/// Timestamp at which the reported result was actually generated
pub dr_timestamp: u64,
pub dr_timestamp: i64,
/// Hash of the Data Request Transaction in the Witnet blockchain
pub dr_tx_hash: Hash,
/// Hash of the Data Request Tally Transaction in the Witnet blockchain
Expand Down
2 changes: 1 addition & 1 deletion bridges/centralized-ethereum/src/actors/dr_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl DrSender {

dr_reporter_msgs.push(Report {
dr_id,
dr_timestamp: u64::from_ne_bytes(get_timestamp().to_ne_bytes()),
dr_timestamp: i64::from_ne_bytes(get_timestamp().to_ne_bytes()),
dr_tx_hash: zero_hash,
dr_tally_tx_hash: zero_hash,
result,
Expand Down
Loading
Loading