mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Correct dust constant
This commit is contained in:
@@ -29,8 +29,11 @@ use crate::{
|
|||||||
const MAX_STANDARD_TX_WEIGHT: u64 = 400_000;
|
const MAX_STANDARD_TX_WEIGHT: u64 = 400_000;
|
||||||
|
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
//https://github.com/bitcoin/bitcoin/blob/a245429d680eb95cf4c0c78e58e63e3f0f5d979a/src/test/transaction_tests.cpp#L815-L816
|
// https://github.com/bitcoin/bitcoin/blob/306ccd4927a2efe325c8d84be1bdb79edeb29b04/src/policy/policy.cpp#L26-L63
|
||||||
const DUST: u64 = 674;
|
// As the above notes, a lower amount may not be considered dust if contained in a SegWit output
|
||||||
|
// This doesn't bother with delineation due to how marginal these values are, and because it isn't
|
||||||
|
// worth the complexity to implement differentation
|
||||||
|
const DUST: u64 = 546;
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, Eq, Debug, Error)]
|
#[derive(Clone, PartialEq, Eq, Debug, Error)]
|
||||||
pub enum TransactionError {
|
pub enum TransactionError {
|
||||||
|
|||||||
Reference in New Issue
Block a user