Closed elielnfinic closed 5 months ago
Thanks for the detailed report. I tried reproducing this on my ubuntu machine, but failed -- so that points to something that's different when on MacOS. I'm not sure what that might be, but let's look.
The assert that triggers the crash comes from the following lines in models/state/mod.rs
:
/// In case the wallet database is corrupted or deleted, this method will restore
/// monitored UTXO data structures from recovery data. This method should only be
/// called on startup, not while the program is running, since it will only restore
/// a wallet state, if the monitored UTXOs have been deleted. Not merely if they
/// are not synced with a valid mutator set membership proof. And this corruption
/// can only happen if the wallet database is deleted or corrupted.
pub(crate) async fn restore_monitored_utxos_from_recovery_data(&mut self) -> Result<()> {
let tip_hash = self.chain.light_state().hash();
let ams_ref = &self.chain.archival_state().archival_mutator_set;
assert_eq!(
tip_hash,
ams_ref.get_sync_label(),
"Archival mutator set must be synced to tip for successful MUTXO recovery"
);
[...]
The documentation suggests that this method is only called if neptune-core
knows about owned UTXOs and expects to find their membership proofs but fails in that latter step. Did you produce this error on a completely fresh install of neptune-core
, or did something go on before the crash?
My bad, I think the mistake I made was using the executable in target/release
instead of installing it into ~/.cargo/bin/
by using cargo install --locked --path .
. After doing that, everything worked like a charm. So, I have all the installation steps for Mac here.
Description
This bug occurs when I run
neptune-core --peers 127.0.0.1:9798
on MacOS and make the program to panic.Steps to reproduce the problem
How to reproduce the error : Clone the repository on Mac Check out to release branch
git checkout release
Build for releasecargo build --release
Change directory torelease/target
Run./neptune-core --peers 127.0.0.1:9798
I would like to mention that prior to running this, I successfully run
./neptune-cli generate-wallet
and./neptune-cli export-seed-phrase
.Specifications
Version : neptune-core 0.0.5 Platform : MacOS / MacBook Pro M1 Pro / Sonoma 14.1.1
Here is the full output of the error :