It's not recommended.
http://wiki.nxtcrypto.org/wiki/FAQ#Are_there_public_servers_I_can_use_for_forging.3F
Another,is it safe to send Nxt with conneting some public nodes(I dont know whether they are public or not)?
TKS.
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
// Copyright (c) 2014 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#include
#include
#include
#include
#include
#include
#include
//#define NUM_DAYS 1
#define NUM_YEARS 10
#define PENALISE_HIGHER_STAKE
//#define PREVENT_IMMEDIATE_REPEAT
//#define SHOW_WINNERS
//#define SHOW_WINNERS_WEIGHT
using namespace std;
const int c_combined_proportion = 10;
#ifndef NUM_YEARS
const size_t c_num_blocks = 1440 * NUM_DAYS;
#else
const size_t c_num_blocks = 1440 * 365 * NUM_YEARS;
#endif
int main( )
{
#ifdef SHOW_WINNERS
string winners;
#endif
vector< int > wins;
vector< int > streaks;
vector< int > balances;
vector< int > penalised;
vector< int > penalising;
vector< int > best_streak;
vector< int > combined;
vector< long > weights;
long total_balance = 0;
int combined_streak = 0;
int best_combined_streak = 0;
for(int a=0;a<9;a++){
balances.push_back( 1 );
}
balances.push_back(91);
srand( ( unsigned int )time( 0 ) );
for( size_t i = 0; i < balances.size( ); i++ )
{
total_balance += balances[ i ];
wins.push_back( 0 );
weights.push_back( 0 );
streaks.push_back( 0 );
combined.push_back( 0 );
penalised.push_back( 0 );
penalising.push_back( 0 );
best_streak.push_back( 0 );
}
size_t last_winner = 0;
for( size_t blocks = 0; blocks < c_num_blocks; blocks++ )
{
long total_weight = 0;
for( size_t i = 0; i < weights.size( ); i++ )
{
if( penalising[ i ] )
{
--penalising[ i ];
weights[ i ] = 0;
}
else
{
int divisor = rand( ) % 10;
if( divisor == 0 )
++divisor;
weights[ i ] = ( rand( ) % 10000 ) * ( balances[ i ] / divisor );
if( weights[ i ] == 0 )
++weights[ i ];
total_weight += weights[ i ];
}
}
if( total_weight == 0 )
++total_weight;
size_t winner = 0;
size_t runner_up = 0;
long best_target = 0;
long second_best_target = 0;
for( size_t i = 0; i < balances.size( ); i++ )
{
long adjusted_weight = weights[ i ] * 1000 / total_weight;
if( adjusted_weight > best_target )
{
winner = i;
best_target = adjusted_weight;
}
else if( adjusted_weight > second_best_target )
{
runner_up = i;
second_best_target = adjusted_weight;
}
}
#ifdef PENALISE_HIGHER_STAKE
if( best_target == 350 ) // an above median value
{
++penalised[ winner ];
penalising[ winner ] = 1440;
}
#endif
#ifdef PREVENT_IMMEDIATE_REPEAT
if( winner == last_winner )
winner = runner_up;
#endif
#ifdef SHOW_WINNERS
winners += ( char )( 'a' + winner );
# ifdef SHOW_WINNERS_WEIGHT
ostringstream osstr;
osstr << best_target;
winners += "(" + osstr.str( ) + ")";
# endif
#endif
++wins[ winner ];
if( winner < balances.size( ) / c_combined_proportion )
{
++combined_streak;
if( combined_streak > best_combined_streak )
best_combined_streak = combined_streak;
}
else
combined_streak = 0;
if( winner == last_winner )
{
++streaks[ winner ];
if( streaks[ winner ] > best_streak[ winner ] )
best_streak[ winner ] = streaks[ winner ];
}
else
streaks[ winner ] = 0;
last_winner = winner;
}
cout << "blocks = " << c_num_blocks << endl;
for( size_t i = 0; i < balances.size( ); i++ )
cout << ( char )( 'a' + i ) << " = " << balances[ i ] << endl;
#ifdef SHOW_WINNERS
cout << winners << endl;
#endif
for( size_t i = 0; i < wins.size( ); i++ )
cout << "wins( " << ( char )( 'a' + i ) << " ) = " << wins[ i ] << endl;
#ifdef PENALISE_HIGHER_STAKE
for( size_t i = 0; i < penalised.size( ); i++ )
cout << "penalised( " << ( char )( 'a' + i ) << " ) = " << penalised[ i ] << endl;
#endif
for( size_t i = 0; i < best_streak.size( ); i++ )
cout << "best_streak( " << ( char )( 'a' + i ) << " ) = " << ( best_streak[ i ] + 1 ) << endl;
cout << "best_combined_streak = " << best_combined_streak << endl;
cout << "(combined the first " << ( balances.size( ) / c_combined_proportion ) << " accounts)" << endl;
cout << balances.size() << endl;
}
// Copyright (c) 2014 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#include
#include
#include
#include
#include
#include
#include
//#define NUM_DAYS 1
#define NUM_YEARS 10
#define PENALISE_HIGHER_STAKE
//#define PREVENT_IMMEDIATE_REPEAT
//#define SHOW_WINNERS
//#define SHOW_WINNERS_WEIGHT
using namespace std;
const int c_combined_proportion = 10;
const double c_combined_percent = 90;
#ifndef NUM_YEARS
const size_t c_num_blocks = 1440 * NUM_DAYS;
#else
const size_t c_num_blocks = 1440 * 365 * NUM_YEARS;
#endif
int main( )
{
#ifdef SHOW_WINNERS
string winners;
#endif
vector< int > wins;
vector< int > streaks;
vector< int > balances;
vector< int > penalised;
vector< int > penalising;
vector< int > best_streak;
vector< int > combined;
vector< long > weights;
long total_balance = 0;
int combined_streak = 0;
int best_combined_streak = 0;
for(int a=0;a<100;a++){
balances.push_back( 1 );
}
srand( ( unsigned int )time( 0 ) );
for( size_t i = 0; i < balances.size( ); i++ )
{
total_balance += balances[ i ];
wins.push_back( 0 );
weights.push_back( 0 );
streaks.push_back( 0 );
combined.push_back( 0 );
penalised.push_back( 0 );
penalising.push_back( 0 );
best_streak.push_back( 0 );
}
size_t last_winner = 0;
for( size_t blocks = 0; blocks < c_num_blocks; blocks++ )
{
long total_weight = 0;
for( size_t i = 0; i < weights.size( ); i++ )
{
if( penalising[ i ] )
{
--penalising[ i ];
weights[ i ] = 0;
}
else
{
int divisor = rand( ) % 10;
if( divisor == 0 )
++divisor;
weights[ i ] = ( rand( ) % 10000 ) * ( balances[ i ] / divisor );
if( weights[ i ] == 0 )
++weights[ i ];
total_weight += weights[ i ];
}
}
if( total_weight == 0 )
++total_weight;
size_t winner = 0;
size_t runner_up = 0;
long best_target = 0;
long second_best_target = 0;
for( size_t i = 0; i < balances.size( ); i++ )
{
long adjusted_weight = weights[ i ] * 1000 / total_weight;
if( adjusted_weight > best_target )
{
winner = i;
best_target = adjusted_weight;
}
else if( adjusted_weight > second_best_target )
{
runner_up = i;
second_best_target = adjusted_weight;
}
}
#ifdef PENALISE_HIGHER_STAKE
if( best_target == 350 ) // an above median value
{
++penalised[ winner ];
penalising[ winner ] = 1440;
}
#endif
#ifdef PREVENT_IMMEDIATE_REPEAT
if( winner == last_winner )
winner = runner_up;
#endif
#ifdef SHOW_WINNERS
winners += ( char )( 'a' + winner );
# ifdef SHOW_WINNERS_WEIGHT
ostringstream osstr;
osstr << best_target;
winners += "(" + osstr.str( ) + ")";
# endif
#endif
++wins[ winner ];
if( winner < (int)((double)balances.size( ) * c_combined_percent / 100.0) )
{
++combined_streak;
if( combined_streak > best_combined_streak )
best_combined_streak = combined_streak;
}
else
combined_streak = 0;
if( winner == last_winner )
{
++streaks[ winner ];
if( streaks[ winner ] > best_streak[ winner ] )
best_streak[ winner ] = streaks[ winner ];
}
else
streaks[ winner ] = 0;
last_winner = winner;
}
cout << "blocks = " << c_num_blocks << endl;
for( size_t i = 0; i < balances.size( ); i++ )
cout << ( char )( 'a' + i ) << " = " << balances[ i ] << endl;
#ifdef SHOW_WINNERS
cout << winners << endl;
#endif
for( size_t i = 0; i < wins.size( ); i++ )
cout << "wins( " << ( char )( 'a' + i ) << " ) = " << wins[ i ] << endl;
#ifdef PENALISE_HIGHER_STAKE
for( size_t i = 0; i < penalised.size( ); i++ )
cout << "penalised( " << ( char )( 'a' + i ) << " ) = " << penalised[ i ] << endl;
#endif
for( size_t i = 0; i < best_streak.size( ); i++ )
cout << "best_streak( " << ( char )( 'a' + i ) << " ) = " << ( best_streak[ i ] + 1 ) << endl;
cout << "best_combined_streak = " << best_combined_streak << endl;
cout << "(combined the first " << ( (double)balances.size( ) * c_combined_percent / 100.0 ) << " accounts)" << endl;
cout << balances.size() << endl;
}
// Copyright (c) 2014 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#include
#include
#include
#include
#include
#include
#include
//#define NUM_DAYS 1
#define NUM_YEARS 10
#define PENALISE_HIGHER_STAKE
//#define PREVENT_IMMEDIATE_REPEAT
//#define SHOW_WINNERS
//#define SHOW_WINNERS_WEIGHT
using namespace std;
const int c_combined_proportion = 2;
#ifndef NUM_YEARS
const size_t c_num_blocks = 1440 * NUM_DAYS;
#else
const size_t c_num_blocks = 1440 * 365 * NUM_YEARS;
#endif
int main( )
{
#ifdef SHOW_WINNERS
string winners;
#endif
vector< int > wins;
vector< int > streaks;
vector< int > balances;
vector< int > penalised;
vector< int > penalising;
vector< int > best_streak;
vector< int > combined;
vector< long > weights;
long total_balance = 0;
int combined_streak = 0;
int best_combined_streak = 0;
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
balances.push_back( 1 );
srand( ( unsigned int )time( 0 ) );
for( size_t i = 0; i < balances.size( ); i++ )
{
total_balance += balances[ i ];
wins.push_back( 0 );
weights.push_back( 0 );
streaks.push_back( 0 );
combined.push_back( 0 );
penalised.push_back( 0 );
penalising.push_back( 0 );
best_streak.push_back( 0 );
}
size_t last_winner = 0;
for( size_t blocks = 0; blocks < c_num_blocks; blocks++ )
{
long total_weight = 0;
for( size_t i = 0; i < weights.size( ); i++ )
{
if( penalising[ i ] )
{
--penalising[ i ];
weights[ i ] = 0;
}
else
{
int divisor = rand( ) % 10;
if( divisor == 0 )
++divisor;
weights[ i ] = ( rand( ) % 10000 ) * ( balances[ i ] / divisor );
if( weights[ i ] == 0 )
++weights[ i ];
total_weight += weights[ i ];
}
}
if( total_weight == 0 )
++total_weight;
size_t winner = 0;
size_t runner_up = 0;
long best_target = 0;
long second_best_target = 0;
for( size_t i = 0; i < balances.size( ); i++ )
{
long adjusted_weight = weights[ i ] * 1000 / total_weight;
if( adjusted_weight > best_target )
{
winner = i;
best_target = adjusted_weight;
}
else if( adjusted_weight > second_best_target )
{
runner_up = i;
second_best_target = adjusted_weight;
}
}
#ifdef PENALISE_HIGHER_STAKE
if( best_target == 350 ) // an above median value
{
++penalised[ winner ];
penalising[ winner ] = 1440;
}
#endif
#ifdef PREVENT_IMMEDIATE_REPEAT
if( winner == last_winner )
winner = runner_up;
#endif
#ifdef SHOW_WINNERS
winners += ( char )( 'a' + winner );
# ifdef SHOW_WINNERS_WEIGHT
ostringstream osstr;
osstr << best_target;
winners += "(" + osstr.str( ) + ")";
# endif
#endif
++wins[ winner ];
if( winner < balances.size( ) / c_combined_proportion )
{
++combined_streak;
if( combined_streak > best_combined_streak )
best_combined_streak = combined_streak;
}
else
combined_streak = 0;
if( winner == last_winner )
{
++streaks[ winner ];
if( streaks[ winner ] > best_streak[ winner ] )
best_streak[ winner ] = streaks[ winner ];
}
else
streaks[ winner ] = 0;
last_winner = winner;
}
cout << "blocks = " << c_num_blocks << endl;
for( size_t i = 0; i < balances.size( ); i++ )
cout << ( char )( 'a' + i ) << " = " << balances[ i ] << endl;
#ifdef SHOW_WINNERS
cout << winners << endl;
#endif
for( size_t i = 0; i < wins.size( ); i++ )
cout << "wins( " << ( char )( 'a' + i ) << " ) = " << wins[ i ] << endl;
#ifdef PENALISE_HIGHER_STAKE
for( size_t i = 0; i < penalised.size( ); i++ )
cout << "penalised( " << ( char )( 'a' + i ) << " ) = " << penalised[ i ] << endl;
#endif
for( size_t i = 0; i < best_streak.size( ); i++ )
cout << "best_streak( " << ( char )( 'a' + i ) << " ) = " << ( best_streak[ i ] + 1 ) << endl;
cout << "best_combined_streak = " << best_combined_streak << endl;
cout << "(combined the first " << ( balances.size( ) / c_combined_proportion ) << " accounts)" << endl;
cout << balances.size() << endl;
}