SPVActor class
Actor that handles true SPV validation - receives transactions from counterparties and validates them using merkle proofs against the block header chain
This actor is responsible for:
- Direct transaction validation (NOT discovery)
- Merkle proof validation against stored block headers
- BEEF/BUMP transaction processing
- Invoice-based payment verification
- Coordinating with WalletManagerActor for validated transactions
Note: Block header synchronization is handled by SpiffyNode, which stores headers in storage. This actor consumes those stored headers for validation.
Constructors
- SPVActor({required ActorRef walletManager, required ActorRef invoiceCoordinator, required ReadModelStorage storage, ActorRef? arcActor, ActorRef? headerSyncActor})
Properties
- currentHeight → int
-
Get current chain height
no setter
- currentTip → dynamic
-
Get current chain tip
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
Object error, StackTrace stackTrace) → void -
Called when an error occurs.
inherited
-
onMessage(
dynamic message) → Future< void> - Called when a message is received.
-
postStop(
) → void - Called when the actor is stopped.
-
preStart(
) → void - Called when the actor is started.
-
setArcActor(
ActorRef arcActor) → void - Set the ARC actor reference (called after actor system initialization)
-
setHeaderSyncActor(
ActorRef headerSyncActor) → void - Set the HeaderSync actor reference (called after actor system initialization)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited