Skip to content

Commit 7281737

Browse files
committed
fix doc lints, temp fix for lld issue
1 parent 417ac54 commit 7281737

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.cargo/config.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ rustflags = [
44
"-Dlet_underscore_drop",
55
"-Aclippy::assertions_on_result_states",
66
"-Aclippy::let_unit_value",
7-
]
7+
]
8+
9+
[target.x86_64-unknown-linux-gnu]
10+
rustflags = ["-Zlinker-features=-lld"] # fix nightly bug https://github.com/rust-lang/rust/issues/125321

lib/state.rs

+14-12
Original file line numberDiff line numberDiff line change
@@ -1451,12 +1451,14 @@ impl State {
14511451

14521452
/// Check that
14531453
/// * If the tx is a BitAsset reservation, then the number of bitasset
1454-
/// reservations in the outputs is exactly one more than the number of
1455-
/// bitasset reservations in the inputs. If the tx is a BitAsset
1456-
/// registration, then the number of bitasset reservations in the outputs
1457-
/// is exactly one less than the number of bitasset reservations in the
1458-
/// inputs. Otherwise, the number of bitasset reservations in the outputs
1459-
/// is exactly equal to the number of bitasset reservations in the inputs.
1454+
/// reservations in the outputs is exactly one more than the number of
1455+
/// bitasset reservations in the inputs.
1456+
/// * If the tx is a BitAsset
1457+
/// registration, then the number of bitasset reservations in the outputs
1458+
/// is exactly one less than the number of bitasset reservations in the
1459+
/// inputs.
1460+
/// * Otherwise, the number of bitasset reservations in the outputs
1461+
/// is exactly equal to the number of bitasset reservations in the inputs.
14601462
pub fn validate_reservations(
14611463
&self,
14621464
tx: &FilledTransaction,
@@ -1494,12 +1496,12 @@ impl State {
14941496
* prior to the registration tx.
14951497
* * The last output must be a BitAsset control coin
14961498
* * If the initial supply is nonzero,
1497-
* the second-to-last output must be a BitAsset outputj
1498-
* Otherwise,
1499-
* * The number of BitAsset control coin outputs is exactly the number
1500-
* of BitAsset control coin inputs
1501-
* * The number of BitAsset outputs is at least
1502-
* the number of unique BitAssets in the inputs.
1499+
* the second-to-last output must be a BitAsset output
1500+
* * Otherwise,
1501+
* * The number of BitAsset control coin outputs is exactly the number
1502+
* of BitAsset control coin inputs
1503+
* * The number of BitAsset outputs is at least
1504+
* the number of unique BitAssets in the inputs.
15031505
* * If the tx is a BitAsset update, then there must be at least one
15041506
* BitAsset control coin input and output.
15051507
* * If the tx is an AMM Burn, then

0 commit comments

Comments
 (0)