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: revert shared wallet #523

Merged
merged 22 commits into from
Sep 20, 2023
Merged

fix: revert shared wallet #523

merged 22 commits into from
Sep 20, 2023

Conversation

sander2
Copy link
Member

@sander2 sander2 commented Sep 13, 2023

Revert all the shared-wallet related changes that I could find (except 9406775). There were some merge conflicts, so we need to check that they've been resolved correctly

@sander2 sander2 changed the title Interlay non shared fix: revert shared wallet Sep 13, 2023
Comment on lines 480 to 484
log::warn!(
"Received bitcoin funding errors (complete={}): {:?}",
signed_funded_raw_tx.complete,
signed_funded_raw_tx.errors
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep this?

@@ -664,7 +664,7 @@ fn get_request_for_btc_tx(tx: &Transaction, hash_map: &HashMap<H256, Request>) -
}
}

#[cfg(all(test, feature = "parachain-metadata-kintsugi"))]
#[cfg(all(test, feature = "parachain-metadata-kintsugi-testnet"))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert

Comment on lines +295 to +302

// migration to the new shared public key setup: copy the public key from the
// currency-specific wallet to the master wallet. This can be removed once all
// vaults have migrated
let public_key = PublicKey::from_slice(&derivation_key.0).map_err(BitcoinError::KeyError)?;
let address = Address::p2wpkh(&public_key, btc_rpc_master.network())
.map_err(ConversionError::from)
.map_err(BitcoinError::ConversionError)?;
if let Ok(private_key) = btc_rpc.dump_derivation_key(&public_key) {
self.btc_rpc_master_wallet.import_derivation_key(&private_key)?;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we can remove this, but not blocking on that change

This reverts commit 273aa65.
@gregdhill gregdhill merged commit 11d6d99 into master Sep 20, 2023
6 checks passed
@gregdhill gregdhill deleted the interlay-non-shared branch September 20, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants