forked from lthn/blockchain
fixed resync market issue
This commit is contained in:
parent
80a0da7b27
commit
1b6fff2bf3
3 changed files with 35 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ int main(int argc, char* argv[])
|
|||
//_CrtSetAllocHook(alloc_hook);
|
||||
|
||||
#endif
|
||||
log_space::get_set_log_detalisation_level(true, LOG_LEVEL_2);
|
||||
log_space::get_set_log_detalisation_level(true, LOG_LEVEL_0);
|
||||
log_space::log_singletone::add_logger(LOGGER_CONSOLE, NULL, NULL);
|
||||
log_space::log_singletone::enable_channels("core,currency_protocol,tx_pool,wallet");
|
||||
LOG_PRINT_L0("Starting...");
|
||||
|
|
@ -220,7 +220,7 @@ int main(int argc, char* argv[])
|
|||
|
||||
//create objects and link them
|
||||
bc_services::bc_offers_service offers_service(nullptr);
|
||||
offers_service.set_disabled(true);
|
||||
offers_service.set_disabled(true); //disable by default
|
||||
currency::core ccore(NULL);
|
||||
currency::t_currency_protocol_handler<currency::core> cprotocol(ccore, NULL );
|
||||
p2psrv_t p2psrv(cprotocol);
|
||||
|
|
@ -237,8 +237,10 @@ int main(int argc, char* argv[])
|
|||
|
||||
if (command_line::get_arg(vm, command_line::arg_enable_offers_service))
|
||||
{
|
||||
offers_service.set_disabled(false);
|
||||
ccore.get_blockchain_storage().get_attachment_services_manager().add_service(&offers_service);
|
||||
}
|
||||
|
||||
|
||||
|
||||
std::shared_ptr<currency::stratum_server> stratum_server_ptr;
|
||||
|
|
@ -270,9 +272,10 @@ int main(int argc, char* argv[])
|
|||
CHECK_AND_ASSERT_MES(res, 1, "Failed to initialize p2p server.");
|
||||
LOG_PRINT_L0("P2p server initialized OK on port: " << p2psrv.get_this_peer_port());
|
||||
|
||||
tools::miniupnp_helper upnp_helper;
|
||||
|
||||
if (!command_line::get_arg(vm, command_line::arg_disable_upnp))
|
||||
{
|
||||
tools::miniupnp_helper upnp_helper;
|
||||
LOG_PRINT_L0("Starting UPnP");
|
||||
upnp_helper.start_regular_mapping(p2psrv.get_this_peer_port(), p2psrv.get_this_peer_port(), 20*60*1000);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"jsonrpc": "2.0",
|
||||
"id": 0,
|
||||
"method": "marketplace_global_get_offers_ex",
|
||||
"params": {
|
||||
"filter": {
|
||||
"amount_low_limit": 0,
|
||||
"amount_up_limit": 0,
|
||||
"bonus": false,
|
||||
"category": "",
|
||||
"fake": false,
|
||||
"keyword": "",
|
||||
"limit": 100,
|
||||
"location_city": "",
|
||||
"location_country": "",
|
||||
"offer_type_mask": 0,
|
||||
"offset": 0,
|
||||
"order_by": 0,
|
||||
"primary": "",
|
||||
"rate_low_limit": "0.000000",
|
||||
"rate_up_limit": "0.000000",
|
||||
"reverse": false,
|
||||
"target": "",
|
||||
"timestamp_start": 0,
|
||||
"timestamp_stop": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
"ot": 1,
|
||||
"p": "USD",
|
||||
"pt": "Credit cards, BTC, ZANO, ETH",
|
||||
"t": "Mining farm built by Gigabyted"
|
||||
"t": "Mining farm built by Gigabyted[2]"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue