Show Posts
|
|
Pages: [1] 2 3 4 5 6 7 »
|
|
Enjoying the hive mining on this project, active dev and discord, keep it up!
|
|
|
|
what nodes to add to cfg in wallet for faster sync?
Here's a list of the 50 nodes that are active, it should help. addnode list: addnode=157.230.169.163 addnode=86.57.193.186 addnode=203.63.122.18 addnode=66.187.44.33 addnode=73.224.234.220 addnode=45.77.172.147 addnode=198.134.29.119 addnode=73.66.93.70 addnode=90.128.32.74 addnode=94.237.76.240 addnode=82.79.210.47 addnode=89.114.140.0 addnode=192.184.95.133 addnode=149.56.164.197 addnode=94.167.44.218 addnode=208.54.229.200 addnode=67.210.112.82 addnode=98.196.81.6 addnode=67.61.240.229 addnode=24.157.233.107 addnode=14.248.206.28 addnode=94.163.144.13 addnode=5.87.1.204 addnode=173.130.138.246 addnode=90.139.141.26 addnode=173.130.182.214 addnode=5.87.168.204 addnode=62.182.200.123 addnode=94.166.130.242 addnode=201.24.50.57 addnode=24.202.30.104 addnode=5.86.75.86 addnode=94.163.173.17 addnode=160.2.42.238 addnode=94.160.227.102 addnode=72.39.179.47 addnode=94.167.244.251 addnode=5.86.67.101 addnode=178.214.255.109 addnode=94.163.229.55 addnode=217.216.87.78 addnode=179.252.169.43 addnode=5.87.11.3 addnode=94.160.78.95 addnode=34.73.116.124 addnode=94.163.107.164 addnode=94.167.188.203 addnode=85.173.201.34 addnode=31.23.15.13 addnode=94.163.17.150 thx)
|
|
|
|
|
what nodes to add to cfg in wallet for faster sync?
|
|
|
|
Report bug... I have tried to forge with two accounts at the same peer, after ~3 hours, the problem happened.  (Image of my control panel, in Spanish, the getState return.) There is NOTHING in the logs, indicating that failed.  If only forged an only account, the peer may be undefined online without freezing. Regards!
|
|
|
|
I have a bug report! This is happening, since I can remember. If I unlock an account at the node, the blocks are always kept updated. (0.7.x+) But if I unlock more than one account, the blocks are retarded and need to restart every 24 hours to be updated.  I'll make logs, so they can see if something special happens.  Greetings!
|
|
|
|
Thanks!  NXTio.org has been updated to 0.8.11  and forging!! 
|
|
|
|
Thanks!! NXTio is now forging with 0.8.10 
|
|
|
|
In the end, i could not get the "hit" with php, the hash is different, it is impossible.  There could be an API to get the hit?  Hit can be calculated: getState - to get last block id getBlock - to get last block generation signature First 8 bytes in little-endian of SHA256(generationSignature, publicKey) get the hit. SHA256 php != SHA256 java http://stackoverflow.com/questions/14475027/unable-to-reproduce-java-messagedigest-hash-in-phpI tried a thousand ways, does not work.
|
|
|
|
there is the getForging API that requires secretPhrase
Has the new version got getNextBlockGenerators? This is the 0.8.10?The current does not have  In the end, i could not get the "hit" with php, the hash is different, it is impossible.  There could be an API to get the hit? 
|
|
|
|
$deadline = $hit / $baseTarget * $totalEffectiveBalance;
Why totalEffectiveBalance (not effective balance of a particular account)? What about "(" and ")"? Like $deadline = $hit / ($baseTarget * $totalEffectiveBalance ); Thanks, but neither worked. I have some simple questions... 1) Calculating the HIT with SHA256(generationSignature, publicKey)... *) generationSignature of the block - Okeya) publicKey the "generator" of the block or my account? b) hash("sha256", hex2bin($generationSignature) . $accountPublicKey); or hash("sha256", hex2bin($generationSignature) . hex2bin($accountPublicKey)); 2) $deadline = $hit / ($baseTarget * $totalEffectiveBalance); or $deadline = $hit / ($baseTarget * $effectiveBalance); a) $totalEffectiveBalance of getState() b) $effectiveBalance my account (getBalance()). Thanks!
|
|
|
|
I'm trying to calculate the deadline with php, anyone could give me a hand? Source: print "generationSignature = " . $generationSignature . "<br>"; print "publickey = " . $accountPublicKey . "<br>"; $hit = hash("sha256", hex2bin($generationSignature) . $accountPublicKey); print "*)hash " . $hit . "<br>"; $hit = substr($hit, 0, 8); print "*)substr " . $hit . "<br>"; $hit = hexdec($hit); print "hit = " . $hit . "<br>"; print "baseTarget = " . $baseTarget . "<br>"; print "totalEffectiveBalance = " . $totalEffectiveBalance . "<br>"; $deadline = $hit / $baseTarget * $totalEffectiveBalance; print "deadline = " . $deadline . "<br>"; $time_elapsed = $actualtime - $blocktime; print "time_elapsed = " . $time_elapsed . "<br>"; $deadline = $deadline - $time_elapsed; Output: generationSignature = f75276b700cd3f2e6e373114d2ce653da8dbd65700293f5bd75abe906706aa94 publickey = 25ae5107a806e561488394ed5b59916d61c2f0110182e67a1aae19cd6bd86d0e *)hash c57c55e5c10b4c88dc5aed9780e2a13edae2446a897fe3eb0c67af3f1ab8c145 *)substr c57c55e5 hit = 3313260005 baseTarget = 1118203847 totalEffectiveBalance = 99023301400 deadline = 293407990834.5 time_elapsed = 57 Deadline return: 293407990777 (3395925 days, 19 hours, 39 minutes, 37 seconds)Real deadline: 10739 (2 hours, 58 minutes, 59 seconds)any idea where can be the problem? 
|
|
|
|
NXTio.org... waiting confirmations... Last Forged Blocks Block 13850722686913980333 (1.00 NXT) - Remaining 1025 confirmations. Block 17798388046016202810 (1.00 NXT) - Remaining 1031 confirmations. Peer forging with 0.8.8  ______________ There is a new project launched  NXTio will grow!
|
|
|
|
Hello, I think I is necessary a new API getDeadline(Account) to be used instead of doing all the time "getForging(secretPhrase)". Is not good to be all the time sending the secretPhrase, just to get the deadline.
I have not reviewed java code but if we can t send passphrase each time that would be great This is similar to a conversation i had with Panda about something he was doing. Why can't a client generate a token using the secret phrase using a component of the request - it could be <current time> or anything. The server can decode the token to authenticate the request came from the account owner - we know this as requestType=decodeToken exists. So I don't see the need to ever send the secret phrase when you could send a token, which could even be based on the whole request string... Dont understand why it was ever developed so the secret phrase is sent for a stateless (i.e. non session based) request. Totally chanc3r  Hello, I think I is necessary a new API getDeadline(Account) to be used instead of doing all the time "getForging(secretPhrase)". Is not good to be all the time sending the secretPhrase, just to get the deadline.
You are only interested in the deadline if you are interested in forging. So the descision you have to make is "Is it safe to send the secret to the node I am connected to?". It doesn't matter how often you want to send the secret only if. Apart from that: You can calculate the deadline yourself with the totalEffectiveBalance from getState: chance_to_forge = AccountEffectiveBalance / totalEffectiveBalance.Value * 100 Thank you very much! did not know.  The value of the result of this formula returns the correct deadline? like the original function?
|
|
|
|
Hello, I think I is necessary a new API getDeadline(Account) to be used instead of doing all the time " getForging(secretPhrase)". Is not good to be all the time sending the secretPhrase, just to get the deadline. Nearly no difference between getForging(secretPhrase) and startForging(secretPhrase), both are " secretPhrase" not safe. public final class StartForging extends APIServlet.APIRequestHandler {
static final StartForging instance = new StartForging();
private StartForging() {}
@Override JSONStreamAware processRequest(HttpServletRequest req) {
String secretPhrase = req.getParameter("secretPhrase"); if (secretPhrase == null) { return MISSING_SECRET_PHRASE; }
Generator generator = Generator.startForging(secretPhrase); if (generator == null) { return UNKNOWN_ACCOUNT; }
JSONObject response = new JSONObject(); response.put("deadline", generator.getDeadline()); return response;
}
@Override boolean requirePost() { return true; }
} public final class GetForging extends APIServlet.APIRequestHandler {
static final GetForging instance = new GetForging();
private GetForging() {}
@Override JSONStreamAware processRequest(HttpServletRequest req) {
String secretPhrase = req.getParameter("secretPhrase"); if (secretPhrase == null) { return MISSING_SECRET_PHRASE; } Account account = Account.getAccount(Crypto.getPublicKey(secretPhrase)); if (account == null) { return UNKNOWN_ACCOUNT; }
Generator generator = Generator.getGenerator(secretPhrase); if (generator == null) { return NOT_FORGING; }
JSONObject response = new JSONObject(); response.put("deadline", generator.getDeadline()); return response;
}
@Override boolean requirePost() { return true; }
} They could do something more simple?  or is the only way?
|
|
|
|
10000 NXT BOUNTY for google authenticator help
I am announcing a 10000 NXT bounty for someone to help me integrate google authenticator to the gateway. It will be paid when the gateway passes the community created test plan for multigateway.
I need someone that can do the webpages needed for account # and token input and the server side code that properly correlates that. along with whatever other help I need. Especially making sure the process is secure.
James
Edit: I hope somebody knows where to update the list of bounties and will do so
I do not understand the bounty. But I've programmed several times (after each change of API), Google Login code. Does that serve you?
|
|
|
|
|