PIVX Core  5.6.99
P2P Digital Currency
Functions
saplingscriptpubkeyman.cpp File Reference
#include "sapling/saplingscriptpubkeyman.h"
#include "chain.h"
#include "primitives/transaction.h"
#include "consensus/params.h"
#include "primitives/block.h"
#include "sapling/incrementalmerkletree.h"
#include "uint256.h"
#include "validation.h"
#include "wallet/wallet.h"
#include <algorithm>
#include <map>
#include <string>
#include <vector>
Include dependency graph for saplingscriptpubkeyman.cpp:

Go to the source code of this file.

Functions

template<typename NoteDataMap >
void CopyPreviousWitnesses (NoteDataMap &noteDataMap, int indexHeight, int64_t nWitnessCacheSize)
 
void AppendNoteCommitment (SaplingNoteData *nd, int indexHeight, int64_t nWitnessCacheSize, const uint256 &note_commitment)
 
template<typename Witness >
void WitnessNoteIfMine (SaplingNoteData *nd, int indexHeight, int64_t nWitnessCacheSize, const Witness &witness)
 
template<typename NoteDataMap >
void UpdateWitnessHeights (NoteDataMap &noteDataMap, int indexHeight, int64_t nWitnessCacheSize)
 
void ResetNoteWitnesses (std::map< SaplingOutPoint, SaplingNoteData > &noteDataMap, std::map< uint256, std::list< SaplingWitness >> &cachedWitnessMap, int indexHeight)
 
template<typename NoteDataMap >
void DecrementNoteWitnesses (NoteDataMap &noteDataMap, int indexHeight, int64_t nWitnessCacheSize)
 

Function Documentation

◆ AppendNoteCommitment()

void AppendNoteCommitment ( SaplingNoteData nd,
int  indexHeight,
int64_t  nWitnessCacheSize,
const uint256 note_commitment 
)

Definition at line 161 of file saplingscriptpubkeyman.cpp.

Here is the call graph for this function:

◆ CopyPreviousWitnesses()

template<typename NoteDataMap >
void CopyPreviousWitnesses ( NoteDataMap &  noteDataMap,
int  indexHeight,
int64_t  nWitnessCacheSize 
)

Definition at line 133 of file saplingscriptpubkeyman.cpp.

◆ DecrementNoteWitnesses()

template<typename NoteDataMap >
void DecrementNoteWitnesses ( NoteDataMap &  noteDataMap,
int  indexHeight,
int64_t  nWitnessCacheSize 
)

Definition at line 426 of file saplingscriptpubkeyman.cpp.

◆ ResetNoteWitnesses()

void ResetNoteWitnesses ( std::map< SaplingOutPoint, SaplingNoteData > &  noteDataMap,
std::map< uint256, std::list< SaplingWitness >> &  cachedWitnessMap,
int  indexHeight 
)
Todo:
: Allow invalidating blocks only if there are not conflicted txs?

Definition at line 399 of file saplingscriptpubkeyman.cpp.

Here is the caller graph for this function:

◆ UpdateWitnessHeights()

template<typename NoteDataMap >
void UpdateWitnessHeights ( NoteDataMap &  noteDataMap,
int  indexHeight,
int64_t  nWitnessCacheSize 
)

Definition at line 207 of file saplingscriptpubkeyman.cpp.

◆ WitnessNoteIfMine()

template<typename Witness >
void WitnessNoteIfMine ( SaplingNoteData nd,
int  indexHeight,
int64_t  nWitnessCacheSize,
const Witness &  witness 
)

Definition at line 175 of file saplingscriptpubkeyman.cpp.

Here is the call graph for this function: