Closed ok300 closed 2 months ago
The first call to sync on a new setup with some pre-existing onchain history will cause a wave of LiquidSdkEvent::PaymentSucceed events.
sync
LiquidSdkEvent::PaymentSucceed
This is because the newly discovered items in the wallet's history are indistinguishable from actual new Send / Receive direct payments.
One solution is to pause events for the duration of the first sync, and particularly sync_payments_with_chain_data.
sync_payments_with_chain_data
This seems to happen for pending payments also, on each sync the pending event is emitted
The first call to
sync
on a new setup with some pre-existing onchain history will cause a wave ofLiquidSdkEvent::PaymentSucceed
events.This is because the newly discovered items in the wallet's history are indistinguishable from actual new Send / Receive direct payments.
One solution is to pause events for the duration of the first
sync
, and particularlysync_payments_with_chain_data
.