Compare commits

...

10 Commits

Author SHA1 Message Date
jw
19466231e8 Merge pull request #194 from wowario/patch3
update checkpoints.dat
2019-03-14 08:19:34 -07:00
jw
abf9c1a58e Merge pull request #193 from wowario/patch2
enable tests in debug
2019-03-14 08:19:15 -07:00
jw
ab19a0ae15 Merge pull request #192 from wowario/patch
Wallet API: multisig_tx_set passing bug fixed
2019-03-14 08:18:57 -07:00
jw
a8be4465d9 Merge pull request #191 from wowario/version
bump to 0.5.1.1
2019-03-14 08:18:46 -07:00
jw
bfd7154cbb Merge pull request #190 from wowario/rebase
wallet2: don't store 0 amount outputs, they'll fail to be spent
2019-03-14 08:18:34 -07:00
wowario
8d00a34b2c bump to 0.5.1.1 2019-03-13 22:30:35 +03:00
wowario
fa50d74571 update checkpoints.dat 2019-03-13 11:43:58 +03:00
wowario
7c7f8647ca enable tests in debug 2019-03-13 10:46:17 +03:00
naughtyfox
5b19c9a7b7 Wallet API: multisig_tx_set passing bug fixed 2019-03-12 22:21:01 +03:00
moneromooo-monero
586b32a7ca wallet2: don't store 0 amount outputs, they'll fail to be spent
It's better to just ignore them, the user does not really need
to know they're here. If the mask is wrong, they'll fail to be
used, and sweeping will fail as it tries to use it.

Reported by Josh Davis.
2019-03-12 22:07:16 +03:00
8 changed files with 15 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ all: release-all
cmake-debug:
mkdir -p $(builddir)/debug
cd $(builddir)/debug && cmake -D CMAKE_BUILD_TYPE=Debug $(topdir)
cd $(builddir)/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug $(topdir)
debug: cmake-debug
cd $(builddir)/debug && $(MAKE)

View File

@@ -41,7 +41,7 @@ Dates are provided in the format YYYY-MM-DD.
| 6969 | 2018-04-24 | Busty Brazzers | v0.2.0.0 | v0.2.0.0 | Bulletproofs, LWMA difficulty algorithm, ringsize >= 10, reduce unlock to 4
| 53666 | 2018-10-06 | Cool Cage | v0.3.0.0 | v0.3.1.3 | Cryptonight variant 2, LWMA v2, ringsize = 22, MMS
| 63469 | 2018-11-11 | Dank Doge | v0.4.0.0 | v0.4.0.0 | LWMA v4
| 81769 | 2019-02-19 | Erotic EggplantEmoji | v0.5.0.0 | v0.5.1.0 | Cryptonight/wow, LWMA v1 with N=144, Updated Bulletproofs, Fee Per Byte, Auto-churn
| 81769 | 2019-02-19 | Erotic EggplantEmoji | v0.5.0.0 | v0.5.1.1 | Cryptonight/wow, LWMA v1 with N=144, Updated Bulletproofs, Fee Per Byte, Auto-churn
X's indicate that these details have not been determined as of commit date.

Binary file not shown.

View File

@@ -216,6 +216,7 @@ namespace cryptonote
ADD_CHECKPOINT(82069, "fdea800d23d0b2eea19dec8af31e453e883e8315c97e25c8bb3e88ca164f8369"); //Hard fork to v12
ADD_CHECKPOINT(85000, "31d62ab75470b15aedee6674b78767b53f10951786e991c26035743c267b247a");
ADD_CHECKPOINT(87000, "a788e5a7233ca2198ad6446ddc454b05d578e72253ed2bbca969527230f6eec2");
ADD_CHECKPOINT(88200, "50bb43d5d563524d6b9f308a2483b80934bab2ab5250757558318834476f1cfb");
return true;
}

View File

@@ -4581,7 +4581,7 @@ void Blockchain::cancel()
}
#if defined(PER_BLOCK_CHECKPOINT)
static const char expected_block_hashes_hash[] = "0397d49ea848f57a340c2e7f0438ad76c2e61d68aa470e96d1ad8e99fa5138d9";
static const char expected_block_hashes_hash[] = "aebccac9c26ebbbed9745973add8289c73c01233614889eacad4cd7c01ee74cf";
void Blockchain::load_compiled_in_block_hashes()
{
const bool testnet = m_nettype == TESTNET;

View File

@@ -1,5 +1,5 @@
#define DEF_MONERO_VERSION_TAG "@VERSIONTAG@"
#define DEF_MONERO_VERSION "0.5.1.0"
#define DEF_MONERO_VERSION "0.5.1.1"
#define DEF_MONERO_RELEASE_NAME "Erotic EggplantEmoji"
#define DEF_MONERO_VERSION_FULL DEF_MONERO_VERSION "-" DEF_MONERO_VERSION_TAG

View File

@@ -1414,7 +1414,9 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, const
}
if (multisig().isMultisig) {
transaction->m_signers = m_wallet->make_multisig_tx_set(transaction->m_pending_tx).m_signers;
auto tx_set = m_wallet->make_multisig_tx_set(transaction->m_pending_tx);
transaction->m_pending_tx = tx_set.m_ptx;
transaction->m_signers = tx_set.m_signers;
}
} catch (const tools::error::daemon_busy&) {
// TODO: make it translatable with "tr"?

View File

@@ -1333,11 +1333,17 @@ void wallet2::scan_output(const cryptonote::transaction &tx, bool miner_tx, cons
}
THROW_WALLET_EXCEPTION_IF(std::find(outs.begin(), outs.end(), i) != outs.end(), error::wallet_internal_error, "Same output cannot be added twice");
outs.push_back(i);
if (tx_scan_info.money_transfered == 0 && !miner_tx)
{
tx_scan_info.money_transfered = tools::decodeRct(tx.rct_signatures, tx_scan_info.received->derivation, i, tx_scan_info.mask, m_account.get_device());
}
if (tx_scan_info.money_transfered == 0)
{
MERROR("Invalid output amount, skipping");
tx_scan_info.error = true;
return;
}
outs.push_back(i);
THROW_WALLET_EXCEPTION_IF(tx_money_got_in_outs[tx_scan_info.received->index] >= std::numeric_limits<uint64_t>::max() - tx_scan_info.money_transfered,
error::wallet_internal_error, "Overflow in received amounts");
tx_money_got_in_outs[tx_scan_info.received->index] += tx_scan_info.money_transfered;