@@ -22,13 +22,12 @@ inline void SerializeCoordinateMempoolEntry(const CoordinateMempoolEntryType& as
2222 s << assetData.nValue ;
2323}
2424
25-
2625struct CoordinateMempoolEntry {
2726public:
2827 uint32_t assetID; /* !< Asset unique number */
29- uint256 txid; /* !< Asset Mempool txid*/
30- int32_t vout; /* !< Asset Mempool Transaction vout*/
31- CAmount nValue; /* !< Asset Mempool Transaction value*/
28+ uint256 txid; /* !< Asset Mempool txid*/
29+ int32_t vout; /* !< Asset Mempool Transaction vout*/
30+ CAmount nValue; /* !< Asset Mempool Transaction value*/
3231
3332 template <typename Stream>
3433 inline void Serialize (Stream& s) const {
@@ -59,38 +58,43 @@ struct CoordinateMempoolEntry {
5958};
6059
6160/* *
62- * This is the function which used to get mempool asset information
63- * @param[in] txid txid used in transaction inputs
64- * @param[in] voutIn vout used in transaction inputs
65- * @param[in] assetMempoolObj Coordinate mempool entry that return back with value
61+ * Get mempool asset information
62+ * @param[in] txid txid used in transaction inputs
63+ * @param[in] voutIn vout used in transaction inputs
64+ * @param[in] assetMempoolObj Coordinate mempool entry that return back with value
6665 */
6766bool getMempoolAsset (uint256 txid, uint32_t voutIn, CoordinateMempoolEntry* assetMempoolObj);
67+
6868/* *
69- * This is the function which used to get asset total amount
69+ * Get asset total amount
7070 * @param[in] tx transaction information to find what is the amount asset included
7171 * @param[in] m_active_chainstate active chain state information
7272 * @param[in] amountAssetIn returns total asset amount used in transaction
7373 * @param[in] currentAssetID returns current asset id
7474 */
7575bool getAssetWithAmount (const CTransaction& tx, Chainstate& m_active_chainstate, CAmount& amountAssetIn, uint32_t & currentAssetID);
76+
7677/* *
77- * This is the function which remove all asset transaction based on txid
78+ * Remove all asset transaction based on txid
7879 * @param[in] tx transaction, used to find asset ouputs
7980 */
8081void removeMempoolAsset (const CTransaction& tx);
82+
8183/* *
82- * This is the function which include mempool asset
84+ * Include mempool asset
8385 * @param[in] tx transaction, going to included in coordinate mempool entry
8486 * @param[in] m_active_chainstate active chain state information
8587 */
8688void includeMempoolAsset (const CTransaction& tx, Chainstate& m_active_chainstate);
89+
8790/* *
88- * This is the function which get asset ouput information for particular transaction
91+ * Get asset ouput information for particular transaction
8992 * @param[in] tx transaction, used to find asset ouputs
9093 * @param[in] m_active_chainstate active chain state information
9194 */
9295int getAssetOutputCount (const CTransaction& tx, Chainstate& m_active_chainstate);
96+
9397/* *
94- * This is the function which get mempool asset information through rpc
98+ * Get mempool asset information through rpc
9599 */
96- std::vector<CoordinateMempoolEntry> getMempoolAssets ();
100+ std::vector<CoordinateMempoolEntry> getMempoolAssets ();
0 commit comments