Skip to content
Snippets Groups Projects

Draft: Remove duniter account

Closed Hugo Trentesaux requested to merge hugo-remove-duniter-account into master
22 files
+ 169
271
Compare changes
  • Side-by-side
  • Inline

Files

@@ -36,10 +36,8 @@ type BlockNumber = u32;
@@ -36,10 +36,8 @@ type BlockNumber = u32;
type Index = u32;
type Index = u32;
// Define gdev types
// Define gdev types
type AccountInfo = gdev::runtime_types::frame_system::AccountInfo<
type AccountInfo =
Index,
gdev::runtime_types::frame_system::AccountInfo<Index, pallet_balances::AccountData<Balance>>;
gdev::runtime_types::pallet_duniter_account::types::AccountData<Balance>,
>;
type IdtyData = gdev::runtime_types::common_runtime::entities::IdtyData;
type IdtyData = gdev::runtime_types::common_runtime::entities::IdtyData;
type IdtyIndex = u32;
type IdtyIndex = u32;
type IdtyValue =
type IdtyValue =
@@ -201,15 +199,6 @@ mod verifier {
@@ -201,15 +199,6 @@ mod verifier {
format!("Account {} has no providers nor sufficients.", account_id),
format!("Account {} has no providers nor sufficients.", account_id),
);
);
}
}
if account_id.as_slice() != TREASURY_ACCOUNT_ID {
// Rule 4: If the account is not a "special account",
// it should have a random id or a consumer
self.assert(
account_info.data.random_id.is_some() || account_info.consumers > 0,
format!("Account {} has no random_id nor consumer.", account_id),
);
}
}
}
}
}
Loading