@@ -232,11 +232,11 @@ struct CAddressBookData
232232 /* *
233233 * Map containing data about previously generated receive requests
234234 * requesting funds to be sent to this address. Only present for IsMine
235- * addresses. Map keys are decimal numbers uniquely identifying each
236- * request, and map values are serialized RecentRequestEntry objects
237- * containing BIP21 URI information including message and amount.
235+ * addresses. Map keys are numbers uniquely identifying each request, and
236+ * map values are serialized RecentRequestEntry objects containing BIP21 URI
237+ * information including message and amount.
238238 */
239- std::map<std::string , std::string> receive_requests{};
239+ std::map<int64_t , std::string> receive_requests{};
240240
241241 /* * Accessor methods. */
242242 bool IsChange () const { return !label.has_value (); }
@@ -519,7 +519,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
519519 // ! Marks destination as previously spent.
520520 void LoadAddressPreviouslySpent (const CTxDestination& dest) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
521521 // ! Appends payment request to destination.
522- void LoadAddressReceiveRequest (const CTxDestination& dest, const std::string& id, const std::string& request) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
522+ void LoadAddressReceiveRequest (const CTxDestination& dest, int64_t id, const std::string& request) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
523523
524524 // ! Holds a timestamp at which point the wallet is scheduled (externally) to be relocked. Caller must arrange for actual relocking to occur via Lock().
525525 int64_t nRelockTime GUARDED_BY (cs_wallet){0 };
@@ -750,8 +750,8 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
750750 bool SetAddressPreviouslySpent (WalletBatch& batch, const CTxDestination& dest, bool used) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
751751
752752 std::vector<std::string> GetAddressReceiveRequests () const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
753- bool SetAddressReceiveRequest (WalletBatch& batch, const CTxDestination& dest, const std::string& id, const std::string& value) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
754- bool EraseAddressReceiveRequest (WalletBatch& batch, const CTxDestination& dest, const std::string& id) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
753+ bool SetAddressReceiveRequest (WalletBatch& batch, const CTxDestination& dest, int64_t id, const std::string& value) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
754+ bool EraseAddressReceiveRequest (WalletBatch& batch, const CTxDestination& dest, int64_t id) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
755755
756756 unsigned int GetKeyPoolSize () const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
757757
0 commit comments