Skip to content

Commit

Permalink
feat(bitcoin): <- adds hard cap for fees
Browse files Browse the repository at this point in the history
  • Loading branch information
gskapka committed Dec 18, 2023
1 parent b8e7c72 commit 6a3f292
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 68 deletions.
135 changes: 68 additions & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions common/bitcoin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ltc = ["litecoin"]
default = ["bitcoin"]

[dependencies]
thiserror = "1.0.51"
hex = { workspace = true }
log = { workspace = true }
paste = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions common/bitcoin/src/btc_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub const BTC_TX_VERSION: i32 = 1;
pub const MAX_NUM_OUTPUTS: usize = 2;
pub const BTC_NUM_DECIMALS: usize = 8;
pub const BTC_PUB_KEY_SLICE_LENGTH: usize = 33;
pub(crate) const BTC_FEE_HARDCAP: u64 = 500_000; // NOTE: 0.005 btc
pub const BTC_TX_LOCK_TIME: PackedLockTime = PackedLockTime::ZERO;
pub const DEFAULT_BTC_SEQUENCE: Sequence = Sequence(4_294_967_295); // NOTE: 0xFFFFFFFF
pub const BTC_CORE_IS_INITIALIZED_JSON: &str = "{btc_enclave_initialized:true}";
Expand Down
Loading

0 comments on commit 6a3f292

Please sign in to comment.