kaspad
kaspad copied to clipboard
Add RPC method to fetch the virtual UTXO set
- Implement
GetVirtualUTXOSet(expectedVirtualParentHashes *DomainHash, fromOutpoint *DomainOutpoint, limit int) ([]*OutpointAndUTXOEntryPair, error)
that will work likeGetPruningPointUTXOs
. - Implement
startP2PFlows
andstopP2PFlows
RPC commands. - Add the virtual UTXO diff and the virtual parent hashes to
BlockInsertionResult
, and forward them as RPC notification. - Add
GetVirtualUTXOSet
RPC command with similar signature, and make sure that the P2P flows are stopped when it's called.
This should take approximately 3 days