recent import of tx time increased to 180 days

pull/88/head
moneroexamples 6 years ago
parent 985f6950c7
commit 64eda15eb1

@ -45,7 +45,7 @@
},
"refresh_block_status_every_seconds" : 10,
"search_thread_life_in_seconds" : 300,
"max_number_of_blocks_to_import" : 22000,
"max_number_of_blocks_to_import" : 132000,
"ssl" :
{
"enable" : false,

@ -3,7 +3,7 @@ var config = {
mainnetExplorerUrl: "https://xmrchain.com/",
testnetExplorerUrl: "https://testnet.xmrchain.com/",
stagenetExplorerUrl: "http://162.210.173.150:8083/",
nettype: 2, /* 0 - MAINNET, 1 - TESTNET, 2 - STAGENET */
nettype: 0, /* 0 - MAINNET, 1 - TESTNET, 2 - STAGENET */
coinUnitPlaces: 12,
txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero
txCoinbaseMinConfirms: 60, // corresponds to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in Monero

@ -49,7 +49,7 @@ thinwalletCtrls.controller("ImportAccountCtrl", function($scope, $location,
// as its much less complicated that importAll.
$scope.importLast = function()
{
if ($scope.no_blocks_to_import > 22000) {
if ($scope.no_blocks_to_import > 132000) {
ModalService.hide('imported-account');
return;
}

@ -20,8 +20,8 @@
required="required" ng-model="no_blocks_to_import" selected="1000">
<option value="1000">n = 1000 (since roughly 1 day ago)</option>
<option value="5500">n = 5500 (since roughly 7 days ago)</option>
<option value="11000">n = 11000 (since roughly 15 days ago)</option>
<option value="22000">n = 22000 (since roughly 30 days ago)</option>
<option value="132000">n = 132000 (since roughly 180 days ago)</option>
</select>
</div>

@ -172,6 +172,8 @@ OutputInputIdentification::identify_inputs(
{
vector<txin_to_key> input_key_imgs = xmreg::get_key_images(*tx);
size_t search_misses = {0};
// make timescale maps for mixins in input
for (const txin_to_key& in_key: input_key_imgs)
{
@ -251,7 +253,12 @@ OutputInputIdentification::identify_inputs(
// in all inputs in a given txs. Thus, if a single input
// is without our output, we can assume this tx does
// not contain any of our spendings.
//break;
// just to be sure before we break out of this loop,
// do it only after two misses
if (++search_misses > 2)
break;
}
} // for (const txin_to_key& in_key: input_key_imgs)

Loading…
Cancel
Save