Skip to content

Commit 80c76cc

Browse files
committed
More small fixes
1 parent 08c1e84 commit 80c76cc

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

chainstate/test-framework/src/block_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'f> BlockBuilder<'f> {
123123
pub fn add_test_transaction(
124124
mut self,
125125
rng: &mut (impl Rng + CryptoRng),
126-
supper_htlc: bool,
126+
support_htlc: bool,
127127
) -> Self {
128128
let utxo_set = self
129129
.framework
@@ -152,7 +152,7 @@ impl<'f> BlockBuilder<'f> {
152152
&self.pos_accounting_store,
153153
None,
154154
account_nonce_getter,
155-
supper_htlc,
155+
support_htlc,
156156
)
157157
.make(
158158
rng,

chainstate/test-framework/src/random_tx_maker.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,8 @@ impl<'a> RandomTxMaker<'a> {
838838
TxOutput::Transfer(OutputValue::Coin(new_value), destination)
839839
}
840840
}
841-
_ => TxOutput::Transfer(OutputValue::Coin(new_value), destination),
841+
2..=4 => TxOutput::Transfer(OutputValue::Coin(new_value), destination),
842+
_ => unreachable!(),
842843
}
843844
}
844845
})

common/src/chain/transaction/output/htlc.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ use serialization::{Decode, Encode};
2121

2222
use super::{timelock::OutputTimeLock, Destination};
2323

24-
fixed_hash::construct_fixed_hash! {
25-
#[derive(Encode, Decode, serde::Serialize, serde::Deserialize)]
26-
pub struct SecretHash(20);
27-
}
28-
29-
impl rpc_description::HasValueHint for SecretHash {
30-
const HINT_SER: rpc_description::ValueHint = rpc_description::ValueHint::HEX_STRING;
31-
}
32-
3324
#[derive(Debug, Clone, PartialEq, Eq, Encode, Decode, serde::Serialize, serde::Deserialize)]
3425
pub struct HashedTimelockContract {
3526
// can be spent either by a specific address that knows the secret

0 commit comments

Comments
 (0)