public UTXOState Snapshot() { return(new UTXOState() { UTXOByOutpoint = new UTXOByOutpoint(UTXOByOutpoint), Conflicts = new MultiValueDictionary <OutPoint, uint256>(Conflicts), SpentUTXOs = new HashSet <OutPoint>(SpentUTXOs), _BookmarkProcessor = _BookmarkProcessor.Clone(), _KnownInputs = new HashSet <OutPoint>(_KnownInputs), _TransactionTimes = new List <DateTimeOffset>(_TransactionTimes) }); }
public UTXOState Snapshot() { return(new UTXOState() { UTXOByOutpoint = new Dictionary <OutPoint, Coin>(UTXOByOutpoint), Conflicts = new MultiValueDictionary <OutPoint, uint256>(Conflicts), Events = new List <UTXOEvent>(Events), MatchScript = MatchScript, SpentUTXOs = new HashSet <OutPoint>(SpentUTXOs), _BookmarkProcessor = _BookmarkProcessor.Clone() }); }