From b674728dfa12f26a508713e31ce8e53c1445f040 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 22 Feb 2019 11:44:42 +0000 Subject: Better error when sending a tx with a too large extra field --- src/wallet/wallet2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wallet/wallet2.cpp') diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index c02d10ab4..af8dbb16d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -9096,6 +9096,7 @@ std::vector wallet2::create_transactions_2(std::vector= TX_WEIGHT_TARGET(upper_transaction_weight_limit)); + THROW_WALLET_EXCEPTION_IF(try_tx && tx.dsts.empty(), error::tx_too_big, estimated_rct_tx_weight, upper_transaction_weight_limit); } } -- cgit v1.2.3