mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-29 23:43:02 +08:00
feat: validate amount with signer key authorizations
This commit is contained in:
@@ -863,6 +863,8 @@ impl MockamotoNode {
|
||||
&Pox4SignatureTopic::StackStx,
|
||||
CHAIN_ID_TESTNET,
|
||||
12_u128,
|
||||
u128::MAX,
|
||||
1,
|
||||
)
|
||||
.unwrap()
|
||||
.to_rsv();
|
||||
@@ -877,6 +879,8 @@ impl MockamotoNode {
|
||||
ClarityValue::UInt(12),
|
||||
ClarityValue::some(ClarityValue::buff_from(signature).unwrap()).unwrap(),
|
||||
ClarityValue::buff_from(signer_key).unwrap(),
|
||||
ClarityValue::UInt(u128::MAX),
|
||||
ClarityValue::UInt(1),
|
||||
],
|
||||
})
|
||||
} else {
|
||||
@@ -887,6 +891,8 @@ impl MockamotoNode {
|
||||
&Pox4SignatureTopic::StackExtend,
|
||||
CHAIN_ID_TESTNET,
|
||||
5_u128,
|
||||
u128::MAX,
|
||||
1,
|
||||
)
|
||||
.unwrap()
|
||||
.to_rsv();
|
||||
@@ -901,6 +907,8 @@ impl MockamotoNode {
|
||||
pox_address.as_clarity_tuple().unwrap().into(),
|
||||
ClarityValue::some(ClarityValue::buff_from(signature).unwrap()).unwrap(),
|
||||
ClarityValue::buff_from(signer_key).unwrap(),
|
||||
ClarityValue::UInt(u128::MAX),
|
||||
ClarityValue::UInt(1),
|
||||
],
|
||||
})
|
||||
};
|
||||
|
||||
@@ -397,6 +397,8 @@ pub fn boot_to_epoch_3(
|
||||
&Pox4SignatureTopic::StackStx,
|
||||
CHAIN_ID_TESTNET,
|
||||
12_u128,
|
||||
u128::MAX,
|
||||
1,
|
||||
)
|
||||
.unwrap()
|
||||
.to_rsv();
|
||||
@@ -418,6 +420,8 @@ pub fn boot_to_epoch_3(
|
||||
clarity::vm::Value::some(clarity::vm::Value::buff_from(signature).unwrap())
|
||||
.unwrap(),
|
||||
clarity::vm::Value::buff_from(signer_pk.to_bytes_compressed()).unwrap(),
|
||||
clarity::vm::Value::UInt(u128::MAX),
|
||||
clarity::vm::Value::UInt(1),
|
||||
],
|
||||
);
|
||||
submit_tx(&http_origin, &stacking_tx);
|
||||
@@ -642,6 +646,8 @@ pub fn boot_to_epoch_3_reward_set(
|
||||
&Pox4SignatureTopic::StackStx,
|
||||
CHAIN_ID_TESTNET,
|
||||
lock_period,
|
||||
u128::MAX,
|
||||
1,
|
||||
)
|
||||
.unwrap()
|
||||
.to_rsv();
|
||||
@@ -662,6 +668,8 @@ pub fn boot_to_epoch_3_reward_set(
|
||||
clarity::vm::Value::some(clarity::vm::Value::buff_from(signature).unwrap())
|
||||
.unwrap(),
|
||||
clarity::vm::Value::buff_from(signer_pk.to_bytes_compressed()).unwrap(),
|
||||
clarity::vm::Value::UInt(u128::MAX),
|
||||
clarity::vm::Value::UInt(1),
|
||||
],
|
||||
);
|
||||
submit_tx(&http_origin, &stacking_tx);
|
||||
@@ -1232,6 +1240,8 @@ fn correct_burn_outs() {
|
||||
&Pox4SignatureTopic::StackStx,
|
||||
CHAIN_ID_TESTNET,
|
||||
1_u128,
|
||||
u128::MAX,
|
||||
1,
|
||||
)
|
||||
.unwrap()
|
||||
.to_rsv();
|
||||
@@ -1251,6 +1261,8 @@ fn correct_burn_outs() {
|
||||
clarity::vm::Value::some(clarity::vm::Value::buff_from(signature).unwrap())
|
||||
.unwrap(),
|
||||
clarity::vm::Value::buff_from(pk_bytes).unwrap(),
|
||||
clarity::vm::Value::UInt(u128::MAX),
|
||||
clarity::vm::Value::UInt(1),
|
||||
],
|
||||
);
|
||||
let txid = submit_tx(&http_origin, &stacking_tx);
|
||||
|
||||
Reference in New Issue
Block a user