Merge rust-bitcoin/rust-bitcoin#4244: chore: spellchecker
427bfb82d7
chore: spellchecker (healthyyyoung) Pull request description: ACKs for top commit: Kixunil: ACK427bfb82d7
tcharding: ACK427bfb82d7
apoelstra: ACK 427bfb82d75cdc98d31ec270c2011d6f6d75bcd4; successfully ran local tests Tree-SHA512: 979bdbcd865f336388c144d7ebc5aff4b061847be79c7e880140a044619d68fc80d4eada5c76dc5f66bb4b4464cd0d3c79c9ba0d549a13556efb55673254117f
This commit is contained in:
commit
f6c97d300d
|
@ -494,7 +494,7 @@ fn script_asm() {
|
|||
assert_eq!(ScriptBuf::from_hex("0047304402202457e78cc1b7f50d0543863c27de75d07982bde8359b9e3316adec0aec165f2f02200203fd331c4e4a4a02f48cf1c291e2c0d6b2f7078a784b5b3649fca41f8794d401004cf1552103244e602b46755f24327142a0517288cebd159eccb6ccf41ea6edf1f601e9af952103bbbacc302d19d29dbfa62d23f37944ae19853cf260c745c2bea739c95328fcb721039227e83246bd51140fe93538b2301c9048be82ef2fb3c7fc5d78426ed6f609ad210229bf310c379b90033e2ecb07f77ecf9b8d59acb623ab7be25a0caed539e2e6472103703e2ed676936f10b3ce9149fa2d4a32060fb86fa9a70a4efe3f21d7ab90611921031e9b7c6022400a6bb0424bbcde14cff6c016b91ee3803926f3440abf5c146d05210334667f975f55a8455d515a2ef1c94fdfa3315f12319a14515d2a13d82831f62f57ae").unwrap().to_string(),
|
||||
"OP_0 OP_PUSHBYTES_71 304402202457e78cc1b7f50d0543863c27de75d07982bde8359b9e3316adec0aec165f2f02200203fd331c4e4a4a02f48cf1c291e2c0d6b2f7078a784b5b3649fca41f8794d401 OP_0 OP_PUSHDATA1 552103244e602b46755f24327142a0517288cebd159eccb6ccf41ea6edf1f601e9af952103bbbacc302d19d29dbfa62d23f37944ae19853cf260c745c2bea739c95328fcb721039227e83246bd51140fe93538b2301c9048be82ef2fb3c7fc5d78426ed6f609ad210229bf310c379b90033e2ecb07f77ecf9b8d59acb623ab7be25a0caed539e2e6472103703e2ed676936f10b3ce9149fa2d4a32060fb86fa9a70a4efe3f21d7ab90611921031e9b7c6022400a6bb0424bbcde14cff6c016b91ee3803926f3440abf5c146d05210334667f975f55a8455d515a2ef1c94fdfa3315f12319a14515d2a13d82831f62f57ae");
|
||||
// Various weird scripts found in transaction 6d7ed9914625c73c0288694a6819196a27ef6c08f98e1270d975a8e65a3dc09a
|
||||
// which triggerred overflow bugs on 32-bit machines in script formatting in the past.
|
||||
// which triggered overflow bugs on 32-bit machines in script formatting in the past.
|
||||
assert_eq!(ScriptBuf::from_hex("01").unwrap().to_string(), "OP_PUSHBYTES_1 <push past end>");
|
||||
assert_eq!(ScriptBuf::from_hex("0201").unwrap().to_string(), "OP_PUSHBYTES_2 <push past end>");
|
||||
assert_eq!(ScriptBuf::from_hex("4c").unwrap().to_string(), "<unexpected end>");
|
||||
|
|
|
@ -253,7 +253,7 @@ impl Target {
|
|||
/// [max]: Target::max
|
||||
/// [target]: crate::block::HeaderExt::target
|
||||
pub fn difficulty(&self, params: impl AsRef<Params>) -> u128 {
|
||||
// Panic here may be eaiser to debug than during the actual division.
|
||||
// Panic here may be easier to debug than during the actual division.
|
||||
assert_ne!(self.0, U256::ZERO, "divide by zero");
|
||||
|
||||
let max = params.as_ref().max_attainable_target;
|
||||
|
|
|
@ -368,7 +368,7 @@ impl Serialize for TapTree {
|
|||
for leaf_info in self.script_leaves() {
|
||||
// # Cast Safety:
|
||||
//
|
||||
// TaprootMerkleBranch can only have len atmost 128(TAPROOT_CONTROL_MAX_NODE_COUNT).
|
||||
// TaprootMerkleBranch can only have len at most 128(TAPROOT_CONTROL_MAX_NODE_COUNT).
|
||||
// safe to cast from usize to u8
|
||||
buf.push(leaf_info.merkle_branch().len() as u8);
|
||||
buf.push(leaf_info.version().to_consensus());
|
||||
|
|
|
@ -243,7 +243,7 @@ pub struct ChaCha20 {
|
|||
nonce: Nonce,
|
||||
/// Internal block index of keystream.
|
||||
block_count: u32,
|
||||
/// Interal byte offset index of the block_count.
|
||||
/// Internal byte offset index of the block_count.
|
||||
seek_offset_bytes: usize,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue