From a8cc58bb89412d9f720e2b7d9b57f4a107313a1d Mon Sep 17 00:00:00 2001 From: Ziyuan Liu Date: Wed, 18 Apr 2018 20:21:21 +0900 Subject: [PATCH] Remove oddfee error references + validation check (#975) --- core/src/core/transaction.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/src/core/transaction.rs b/core/src/core/transaction.rs index 10e6b1b87..ca0ede8fc 100644 --- a/core/src/core/transaction.rs +++ b/core/src/core/transaction.rs @@ -49,10 +49,6 @@ bitflags! { /// Errors thrown by Block validation #[derive(Clone, Debug, PartialEq)] pub enum Error { - /// Transaction fee can't be odd, due to half fee burning - OddFee, - /// Kernel fee can't be odd, due to half fee burning - OddKernelFee, /// Underlying Secp256k1 error (signature validation or invalid public key /// typically) Secp(secp::Error), @@ -421,9 +417,6 @@ impl Transaction { /// excess value against the signature as well as range proofs for each /// output. pub fn validate(&self) -> Result<(), Error> { - if self.fee() & 1 != 0 { - return Err(Error::OddFee); - } if self.inputs.len() > consensus::MAX_BLOCK_INPUTS { return Err(Error::TooManyInputs); }