You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit to storage based on actual change instead of dirty flag. (#1721)
* fix missing from_key_bytes impl for DepositList and VoteList.
* fix is_builtin check, do not include null address.
* Commit to storage based on actual change instead of dirty flag.
- Refactored storage_layout, StateDb.
- Commit staking state in genesis block.
* optimize lock for get
* sample chain
Copy file name to clipboardExpand all lines: accounts/cfxstore/src/account/safe_account.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ impl SafeAccount {
141
141
let meta_plain = json::VaultKeyMeta::load(&meta_plain)
142
142
.map_err(|e| Error::Custom(format!("{:?}", e)))?;
143
143
144
-
if !meta_plain.address.is_user_account_address(){
144
+
if !Address::from_slice(&meta_plain.address).is_user_account_address(){
145
145
warn!("Trying to import a non-user type account address. Are you trying to import an Ethkey for Conflux? Note that the address scheme between Ethereum and Conflux are different.");
0 commit comments