Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix issue_reward display error #309

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pallets/audit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ pub mod pallet {
weight = weight.saturating_add(T::DbWeight::get().reads_writes(1, 1));
}

if count >= 3 {
if count >= 20 {
let result = T::MinerControl::force_miner_exit(&miner);
weight = weight.saturating_add(T::DbWeight::get().reads_writes(5, 5));
if result.is_err() {
Expand Down
2 changes: 1 addition & 1 deletion pallets/sminer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ pub mod pallet {

reward.order_list.retain(|order| order.max_count != order.receive_count);

reward.reward_issued.checked_add(&avail_reward).ok_or(Error::<T>::Overflow)?;
reward.reward_issued = reward.reward_issued.checked_add(&avail_reward).ok_or(Error::<T>::Overflow)?;

T::RewardPool::send_reward_to_miner(miner.beneficiary, avail_reward)?;

Expand Down
2 changes: 1 addition & 1 deletion standalone/chain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 104,
spec_version: 105,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Loading