Bitcoin Forum
June 23, 2024, 08:41:50 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
161  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 18, 2014, 04:47:57 PM
Cool to see another web client, however it seems to be using api calls that will be removed soon (getInitialData / processNewData)
I will not remove those if other clients are relying on them. But those are not API calls, those are user interface calls. In 0.8.0 you would be able to selectively enable/disable the http API and the UI, so don't bundle them together. And they will be on different ports.
162  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 18, 2014, 04:43:16 PM
Question about the java API.
Are there any plans to extract the functionality of the handlers in in nxt.http into java interfaces.
My use case is to create a payment transaction but i dont want to go through the HTTP layer. Currently to send money from the java api you would have to duplicate all the steps taken in for instance nxt.http.SendMoney.
The Java API is still a work in progress, in fact I am just in the middle of another refactoring for 0.8.0. I am switching to embedded jetty, so Nxt will no longer be a servlet. I will also improve the API while at it.

For the SendMoney example, what kind of an API would you find useful? Right now the steps you would need to duplicate are not that many, basically you need to do:

Code:
        Transaction transaction = Transaction.newTransaction(Convert.getEpochTime(), deadline, publicKey,
                recipient, amount, fee, referencedTransaction);
        transaction.sign(secretPhrase);

        Blockchain.broadcast(transaction);
The rest is validating the user input and returning error messages, which is application specific. If you submit an invalid transaction, it will not be accepted, and a lot of validation is done immediately when the Transaction object is constructed (such as for non-negative amount and fee, deadline, timestamp). Other validations, such as the account having enough funds are only done when the Transaction is about to be included in a block (because the account balance may have changed in the meantime).

163  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 18, 2014, 04:27:29 PM
OK so as far as web browser javascript transaction generation and signing goes, does it matter where the end client sends their signed transaction to?  do they have to send it to a NRS process that has active forgers, or can they just send it to any NRS system with a synced blockchain?  Im asking because Im considering opening up API for all the 24 VPSs I manage on nxtcrypto.org and am also considering adding SSL certs for that domain into the Jetty for each server as well.
The node doesn't need to be forging. If you send a transaction to any node, it will broadcast it to others, and eventually a forging node will include it in a block.
164  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 17, 2014, 09:40:58 PM

[2014-02-17 21:22:23.586] DEBUG: Failed to accept block 13734259069497850723 at
height 68803 received from node55.nxtbase.com, blacklisting
[2014-02-17 21:22:26.391] DEBUG: Failed to accept block 13734259069497850723 at
height 68803 received from miasik.no-ip.org, blacklisting
[2014-02-17 21:22:50.345] DEBUG: Failed to accept block 209947979157787352 at he
ight 68804 received from nxt.homer.ru, blacklisting
[2014-02-17 21:23:02.295] DEBUG: Failed to accept block 209947979157787352 at he
ight 68804 received from node10.nxtbase.com, blacklisting

I don't understand why it keeps happening to your node, but again those two block ids are from the correct blockchain - at least on the nodes I run.
165  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 17, 2014, 07:47:25 PM
[2014-02-17 20:15:55.657] DEBUG: Failed to accept block 2507106602597677499 at h
eight 68774 received from node01.nxtcrypto.de, blacklisting
[2014-02-17 20:16:02.117] DEBUG: Failed to accept block 2507106602597677499 at h
eight 68774 received from node90.nxtbase.com, blacklisting
[2014-02-17 20:16:06.913] DEBUG: Failed to accept block 2507106602597677499 at h
eight 68774 received from node01.nxtcrypto.de, blacklisting

Block 2507106602597677499 is the correct block to be at that height:
http://87.230.14.1/nxt/nxt.cgi?action=1000&blk=2507106602597677499

If your node refuses to accept it, this means you are on a fork. Your base target is probably very high too, another indication of being on the wrong fork.

If it doesn't recover by itself, you will need to delete the nxt_db folder and redownload the blockchain.
166  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 17, 2014, 04:41:46 PM
I cant seem to find any information on the http://wiki.nxtcrypto.org/wiki/Nxt_API about the getNewData request.
Also looking in the source for 0.7.4 it seems to be missing. Is that API removed?
Thanks. And what about getInitialData? And where can i find more info on API plans/roadmap.
Neither of those was to be considered a part of the API. They are only used by the current NRS javascript client. If you are looking at 0.7 decompiled sources or javadoc, anything under the nxt.user package is not a part of the API and may just disappear one day. The official http/json API is provided only by the classes in nxt.http.

Except nobody has had the time to write some javadoc documentation about each of those, so refer to the wiki for details.

167  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 15, 2014, 07:57:54 PM
Is this because the account is new and I haven't done anything with it yet? (on testnet) - no transactions done.
Yeah, the logic is the same. If the account is unknown I don't start forging with it - otherwise an attacker can flood a node with bogus startForging requests for billions of secretPhrases with no real accounts associated with them.
168  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 15, 2014, 07:42:54 PM
@CFB / JL , I get error "Unknown account" when i do startForging (on testnet) , is this because the account is new and not yet 1440 blocks old? If so, maybe another error would be more appropriate?
What does "getAccount" return?
169  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 15, 2014, 10:10:05 AM
@JL
Code:
[2014-02-15 08:53:45.732] DEBUG: Generate block failed: Previous block id doesn't match

What exactly does that mean?

What does the previous block id not match with?

Am I on a branch?
This is normal to happen. While generateBlock was running, the last block has changed - either a new one arrived, or it was popped off. So your newly generated block is no longer valid, please try again.
170  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 15, 2014, 09:28:22 AM
Problems with the NRS 0.7.5!

[2014-02-15 05:20:51.047] DEBUG: Will pop block 2361969913887136600 at height 66865
[2014-02-15 05:20:51.050] DEBUG: Will pop block 2406230098076950068 at height 66864

Those two blocks were correct at that height, so your node should not have tried to pop them off. Maybe you were on a fork? Or connected to nodes on a fork that were feeding you bad blocks. I don't see any pop-off attempts for those blocks in my logs.
171  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 15, 2014, 09:24:14 AM
I'm not sure that it's good to see Nxt mentioned together with RealSolid or any his project...
+1000

I also strongly recommend that people stay away from RealSolid's mcxnow exchange. Having Nxt on it will only give us bad reputation by association.
172  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 09:41:35 PM
Who decides (and how) which block is "better"?
Each node decides for itself. Eventually they have to agree. The block with higher cumulative difficulty is considered better.
173  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 09:31:24 PM
I am assuming you are not storing the entire blockchain now that we have DB,but maybe that is incorrect?

Almost all NXT functions only need the most recent 1440 blocks, so if each machine kept those 1440 blocks locally, they can purge them after that. blockchain FIFO.

If checkpoint files are a bad idea, I can live with that. Is blockchain FIFO a bad idea too?
Of course I store the whole blockchain, this is what the db contains.

You seem to be talking about blockchain trimming or pruning. This is in the plans, but not that soon.

Downloading the whole db will take longer than just the blockchain.
174  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 09:25:43 PM
Thank you for clarification. How can a block "popp off"?
With a little help from a stronger block that kicks him out Smiley

Only one block can be at the end of the chain, but multiple nodes try to generate blocks at the same time. The better one wins, if the other was attached first it gets popped off.
175  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 09:22:43 PM
Code:
pi@raspberrypi ~/nxt $ du -h nxt_db/
252M nxt_db/
Wrong usage of du?
No. I guess the database needs vacuuming once in a while. I will do that at shutdown, it means stopping the server will take slightly longer.
176  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 09:03:57 PM
Interesting. Why can't this be undone?
Because to find out the previous value of the alias URL, if any, you need to go back through all previous transactions. In effect, again scanning the blockchain.
177  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 09:02:11 PM
Does this mean that we are actually generating checkpoint files on all the nodes all the time? If so, how much work would it be to have newly installed nodes query for the most recent db files and start with that, instead of redownloading the entire blockchain. Of course, must be peer verified checksums, etc.
I don't understand what you mean by checkpoint file. The rest is a bad idea.
178  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 09:00:03 PM
du says: 257480 for current nxt_db folder
What? Mine is 111M only.
179  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 08:58:57 PM
Alias assignment being undone? I didnīt touch the client when this message came.
It is not because of something you did. The block that had to be popped off contained an alias assignment transaction. When a block is popped off, an attempt is made to undo all transactions in it. But this type of transaction cannot be undone, and in this case a full rescan of the blockchain is needed.
180  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 14, 2014, 08:30:49 PM
What does this mean?


[2014-02-14 10:39:40.346] DEBUG: Will pop block 5073332198957728923 at height 66148
[2014-02-14 10:39:40.347] DEBUG: Will pop block 8348856438008341233 at height 66147
[2014-02-14 10:39:40.348] DEBUG: Reversal of alias assignment not supported
[2014-02-14 10:39:40.348] DEBUG: Popping off last block not possible, will do a rescan
[2014-02-14 10:39:40.349] Re-scanning blockchain...
[2014-02-14 10:39:54.734] ...Done
[2014-02-14 10:39:54.737] DEBUG: Generate block failed: Previous block id doesn't match

This is all normal, works as intended. It is telling you exactly what is happening - popping off a block, doing a rescan because alias assignment cannot be simply undone in a pop-off. The block generation attempt failed because in the meantime another block arrived and was accepted.
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!