mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Warn user on attempting to remove build directory for make clean
This commit is contained in:
parent
e940386f9a
commit
8e92162d2c
2 changed files with 4 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -25,6 +25,9 @@ test-release: build-release
|
||||||
all-release: build-release
|
all-release: build-release
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@echo "WARNING: Back-up your wallet if it exists within ./build!" ; \
|
||||||
|
read -r -p "This will destroy the build directory, continue (y/N)?: " CONTINUE; \
|
||||||
|
[ $$CONTINUE = "y" ] || [ $$CONTINUE = "Y" ] || (echo "Exiting."; exit 1;)
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -38,7 +38,7 @@ void wallet2::process_new_transaction(const cryptonote::transaction& tx, uint64_
|
||||||
uint64_t tx_money_got_in_outs = 0;
|
uint64_t tx_money_got_in_outs = 0;
|
||||||
crypto::public_key tx_pub_key = null_pkey;
|
crypto::public_key tx_pub_key = null_pkey;
|
||||||
bool r = parse_and_validate_tx_extra(tx, tx_pub_key);
|
bool r = parse_and_validate_tx_extra(tx, tx_pub_key);
|
||||||
THROW_WALLET_EXCEPTION_IF(!r, error::tx_extra_parse_error, tx);
|
// THROW_WALLET_EXCEPTION_IF(!r, error::tx_extra_parse_error, tx);
|
||||||
|
|
||||||
r = lookup_acc_outs(m_account.get_keys(), tx, tx_pub_key, outs, tx_money_got_in_outs);
|
r = lookup_acc_outs(m_account.get_keys(), tx, tx_pub_key, outs, tx_money_got_in_outs);
|
||||||
THROW_WALLET_EXCEPTION_IF(!r, error::acc_outs_lookup_error, tx, tx_pub_key, m_account.get_keys());
|
THROW_WALLET_EXCEPTION_IF(!r, error::acc_outs_lookup_error, tx, tx_pub_key, m_account.get_keys());
|
||||||
|
|
Loading…
Reference in a new issue