aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/unsigned_transaction.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-25 22:27:43 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-25 22:27:44 +0200
commit29d601563fff1a23fa5c21de8c455d542b1adfe3 (patch)
tree4a071ec0ef979f020a2cf567973e02087494e8b9 /src/wallet/api/unsigned_transaction.cpp
parentMerge pull request #2466 (diff)
parentwallet2: do not keep block hashes below last checkpoint (diff)
downloadmonero-29d601563fff1a23fa5c21de8c455d542b1adfe3.tar.xz
Merge pull request #2434
36c3465b wallet2: do not keep block hashes below last checkpoint (moneromooo-monero) cdbbe99c checkpoints: add a token checkpoint on testnet (the genesis block) (moneromooo-monero) 493fad80 serialization: add deque serialization (moneromooo-monero) fa54b205 fix typo in basic and core CMakeLists.txt (moneromooo-monero) 5d65a75b move checkpoints in a separate library (moneromooo-monero)
Diffstat (limited to 'src/wallet/api/unsigned_transaction.cpp')
-rw-r--r--src/wallet/api/unsigned_transaction.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wallet/api/unsigned_transaction.cpp b/src/wallet/api/unsigned_transaction.cpp
index 961bd772a..5105278e4 100644
--- a/src/wallet/api/unsigned_transaction.cpp
+++ b/src/wallet/api/unsigned_transaction.cpp
@@ -230,13 +230,13 @@ std::vector<std::string> UnsignedTransactionImpl::paymentId() const
{
std::vector<string> result;
for (const auto &utx: m_unsigned_tx_set.txes) {
- crypto::hash payment_id = cryptonote::null_hash;
+ crypto::hash payment_id = crypto::null_hash;
cryptonote::tx_extra_nonce extra_nonce;
std::vector<cryptonote::tx_extra_field> tx_extra_fields;
cryptonote::parse_tx_extra(utx.extra, tx_extra_fields);
if (cryptonote::find_tx_extra_field_by_type(tx_extra_fields, extra_nonce))
{
- crypto::hash8 payment_id8 = cryptonote::null_hash8;
+ crypto::hash8 payment_id8 = crypto::null_hash8;
if(cryptonote::get_encrypted_payment_id_from_tx_extra_nonce(extra_nonce.nonce, payment_id8))
{
// We can't decrypt short pid without recipient key.
@@ -244,10 +244,10 @@ std::vector<std::string> UnsignedTransactionImpl::paymentId() const
}
else if (!cryptonote::get_payment_id_from_tx_extra_nonce(extra_nonce.nonce, payment_id))
{
- payment_id = cryptonote::null_hash;
+ payment_id = crypto::null_hash;
}
}
- if(payment_id != cryptonote::null_hash)
+ if(payment_id != crypto::null_hash)
result.push_back(epee::string_tools::pod_to_hex(payment_id));
else
result.push_back("");