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: add utxo timelock weight and update coin name #2697

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

mx819812523
Copy link
Collaborator

Summary

Summary about this PR

  • Closes #issue

Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 2:02pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Sep 26, 2024 2:02pm

Copy link

github-actions bot commented Sep 26, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

return 1
};
let transaction = option::destroy_some(option_tx);
let tx_lock_time = tx_lock_time(&transaction);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lock_time needs to distinguish between the absolute time and relative time.

return 1 + u64::min(tx_lock_day, MaxLockDay)
};
// lock_time is a bitcoin time
// TODO here should be btc time or rooch time?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use btc time

@jolestar jolestar merged commit 3af5377 into main Sep 26, 2024
10 checks passed
@jolestar jolestar deleted the holder_farmer_with_time_lock branch September 26, 2024 15:37
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.

2 participants