Bitcoin Forum
June 23, 2024, 08:21:58 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 »
221  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 06, 2014, 03:56:06 PM
So, after update to 0.6.0 my node stuck in a loop with no new blocks and these:

Code:
[2014-02-06 13:22:11.796] DEBUG: Reversal of alias assignment not supported
[2014-02-06 13:22:11.797] DEBUG: Popping off last block not possible, will do a rescan
[2014-02-06 13:22:16.996] Re-scanning blockchain...

I redownloaded the blockchain and now it's stuck at block 59557

Dunno what's going on, node was running fine for weeks at 0.5.x
What peers do you have in your web.xml? Remove any that are still running older versions, to avoid getting stuck on their forks.
222  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 06, 2014, 03:52:20 PM
i have to destroy my raspberrypi or in a future maybe 512 will be enough?
It may be enough, you will be able to try with 0.7.0 soon.
223  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 06, 2014, 03:47:47 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Release 0.6.1

http://download.nxtcrypto.org/nxt-client-0.6.1.zip

sha256: 6b5c8632c2d52a066d40017055a2e28f25d16fa30d3c0574bddb12f7d157e55c

Change log:

Fixed a minor bug in the 0.6.0 critical bugfix. Probably not exploitable,
but doesn't hurt to upgrade.

Backported some minor optimizations from 0.7.0.

Better handling of malformed peer announced addresses.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJS86yBAAoJEFOhyXc7+e2AjswQANwwFuUigJOT8j4DN+7CSgSD
fJrAxof5QgeyFix+bfLLK5KQANOtDwR8vqTmVx5xr+GboKAIImWF2aj281M/0fTm
gTPrWVJv6lzX0kv99Sqca+0EI9WeVydfZgNUMUJ/MoUdz/YCG8zy+K2hW+GwwcAH
Li/8FoBOAk2BarUpz8hQTe8+EiNmZfGC52YvUX3XTlDGV5LnENqKFYslms3KsMwm
ZR/9syCrmaJcYzZ0qmnUryFD0qWDfV+GHt9DtyCT4tD7zlTJgDj0p4jkwWKNNr9P
IIaRNrvDHz0QCBqqZP/ojRIipqCMHHqeR9t7sUVqVEXM3XGXgO671h/qcKrsF5QX
8fK113Df1ATrpOxjNg+6sIgY4XYBphou2JrQ+zwjHAevmHtHaaEg3shye5+XP9+o
2f+CnZ0/pAd8AEjztNhqIrJyvsathg5eLkXp6AC4b45VXVqLV7xXP7lehGYYLkLc
e+NTbcVlLpreiIigKnB+CLgrimsnALQck+qM6Bn5vpwPjJaUpwTpsK8agNTkuNav
wERFo/m6Z5BKimRvqhL4SKusxZcm14B8jcajbG52IZVh6l1f3vwwesM6omeTb+1s
dvkOFUkqo4PFYH95ozzDZ+T+nxBL6uS0RHqnH5Mk6i5lCaemKl3fk3B4z3hGANxe
sf8g8bNTKfRVXiLlKn8F
=kbPW
-----END PGP SIGNATURE-----
224  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 06, 2014, 10:48:17 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

More detailed change log of 0.6.0:

The critical bugfix will still be disclosed later. This is only to document
the other changes from 0.5.12 to 0.6.0, as there are plenty of them.

The 0.5.x branch is really painful for me to work with, after getting used to
the fully refactored code in 0.6.x and 0.7.x. Therefore, I decided to stop
maintaining 0.5.x completely and move on to 0.6.x.

The last bugfix in 0.5.12 was not sufficient, and all forging users should
upgrade to 0.6.0 as soon as possible. 0.5.12 is broken and will not be fixed.

The 0.6.x branch still uses serialized object files, however those are not
backwards compatible with 0.5.x. Old blocks.nxt and transactions.nxt files
from 0.5.x will be imported automatically and converted to the new format
the first time 0.6.0 is run.

The blockchainStoragePath parameter in web.xml is no longer needed.

The code has been significantly refactored and is no longer a single java file.
All classes previously nested in Nxt have been moved out to their own files.

Everything is under a top level nxt package, and as a result the servlet-class
parameter in web.xml has to be changed to nxt.Nxt. Sorry that I forgot to
mention that when releasing 0.6.0:

<servlet-name>Nxt</servlet-name>
<servlet-class>nxt.Nxt</servlet-class>

There are three subpackages, nxt.user, nxt.peer, and nxt.http, with request
handlers in separate classes for all the UI, peer to peer, and http API
requests respectively. This completely replaces the old huge switch/case
statements in the servlet doGet and doPost methods.

All the business logic has been moved out of the Nxt servlet class.

A new Transaction.Type class hierarchy has been added to handle all logic
for transaction validation, transaction attachment handling, and transaction
application. This completely replaces the switch statements that used to
hold the transaction validation and processing logic.

Transaction undo, on block pop-off, has been implemented for transactions which
can be undone. For all others, an UndoNotSupportedException triggers a full
blockchain rescan.

A custom NxtException exception hierarchy is now used to help with block and
transaction validation. Most transaction and block parameters are now enforced
to be valid in the Transaction and Block constructors, which makes it sort of
difficult to forget to validate them.

Many minor and not so minor performance and memory optimizations, based on
actual profiling measurements, have been applied.

All field and method access modifiers have been reviewed. No java field or method
is more accessible than it needs to be. Everything that can be private, is now
private. Everything that should be final, is now final.

All JSON response and error handling has been cleaned up and optimized.

Unnecessary to and from ByteBuffer conversions in block and transaction processing
have been removed.

A deadline limit of not more than 1440 minutes for new transactions is now enforced.

Peers that submit invalid block or transaction data are automatically blacklisted.

Java API documentation is now available at http://localhost:7874/doc/ , all APIs
are subject to change as it is work in progress.

Minor UI changes: added warnings to the unlock account dialog and message.html,
added sendMoney to admin.html.

New or improved APIs:

getAccount
parameter: account (the account id)
returns: publicKey (if known), balance, effectiveBalance, all asset balances

getAsset
parameter: asset (the asset id)
returns: accountId of the asset issuer, asset name, description and quantity

getAssetIds
returns: all existing asset id's.

getAskOrderIds and getBidOrderIds now require an asset parameter, and return
the order id's for that asset only.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJS82bBAAoJEFOhyXc7+e2A9UYP/ignHYDkNQsl7mIEmtHjLXQL
Vnhk2qdpR4g1N9JS7Q7JjzlhW9XzMT5aCiEqWgl4hi2zq1ymPL6McO1zD5IxQz1N
tDy1MnjXYp3SrabqnOhPGF/VHqO7VACaCi2uboBHo9fTF+TzW8fu7UD/4oo9LTLl
EaHrKTmBBPjAXooTP7eHgGhUbKi3cc0adwDppK9m0XZKoo7igkt6Rn91p4TXNwYf
WKUY6cce4BdhdtlUsGXKNLPKXEBxIG74MzTyb+2KT4TqlREQkVWV5e4+wctdgj5+
Hrh0lTUvDomzoT+ohXVxgkSKILvGHanX8t1laTkNpjVMqFbSGI9ViJfazFq5heXw
rs/bi9IclFBQvSowz3pToCC8VVxQm6sYrjOj1k2+wVPIie2qWCDj+4WOOqnYf8P8
QNUqP0VncJ0n0RjlvBlX5LQRENekHIR4SaI5rCPcppwz/tNQGB6tDfbXqUT7V77m
Oxg869TOknszSaPu3M/D63Y0i2tn+R27fuaAcvBeKK5ArGlKAlwMSQgjpocoxRos
RJan41fv50YfenniyTjYkRAx0R3iXiFNrdMD3lqEntYyqSxfviZf1fSpUazheMNW
7JwTfOpcV2mTObPMr1ZKJWz2yl1CzPy/J4caA7SXGkzB1nc/onkjJWHYNSBRyGLr
+0/q4Hc0x3XYVvyHM4ng
=OQ1o
-----END PGP SIGNATURE-----
225  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 06, 2014, 01:21:11 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Release 0.6.0

http://download.nxtcrypto.org/nxt-client-0.6.0.zip

sha256: 40154756de464c9587b738c84f14a4a06dfb02476507f1a2383cbe03dc5bd48b

Change log:

Fixed a critical bug. Everybody should upgrade immediately.
The fix in 0.5.12 was not enough.

A more detailed changelog will follow tomorrow, or you can
figure it out yourself. Now I go to sleep.

Did I mention that everyone should upgrade?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJS8uAbAAoJEFOhyXc7+e2AVD0QAM09cbDLn12ncCnyhbQTGVqJ
SxQr4MllRWSmIkQihXYud1a9USQYUs+l6oP8BM+fiSc6/vJctFu9wb24L90N1vL/
RAFdrLDMqtm7dB4DkVFtoGQsClpNob1HLEzsFK5QQUkhkLUsYOD9hifYhHCJm6LO
dda3N0qVMHiVrJfIljYbMRrKAcXDoFY1Z7ajJu4W2ttoz2LGkOAApNV854+AhyxI
D5Z0S13JiMJWXGv6BAFDeOewvCLk6TuPGpusFJb03dKPoZftfwoLe+o0MDBa53Bx
T4M5GStPCpV+xcf9dCqReNa1XtMMWA7rnXfLH+IM0OmtSCTh7zXRDqzocNuNagFR
LoXcTlfN0L1nHXR4beMbQclEifVXjQS32D9XaX1EEEzN/zcOYQrJIQYFuNBjv1w3
mIsleduDVJGCbMlgjrpytEKROuwYynVUXWkAC93c2ueOQEWgU4AKwuYmWBMpzbdB
RBUaXpFVAfYi4dHRwSwHRGeY1bzSV99msbjAnfPWuiltQrcK5Ma8MbTZrv7K/43I
Rjv7YpIIFN4P3Qroxr4+1bCA6MwS/DaQpFygQx5kqMhiL56/8Rm9NggaICRu/CDP
h6G09XYrhhwfVaABlzAhWEijc3wcXWcwP44QWSH/7k7jt0su5MHXKeosmp4OTUkE
B3XuAWOvEWwse4bsbl71
=z84D
-----END PGP SIGNATURE-----
226  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 02:57:07 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Release 0.5.12

http://download.nxtcrypto.org/nxt-client-0.5.12.zip

sha256: 30856c5f76b4194d40ece68d480956999ff8072b7b6a78b0be7d9da535dc969a

Change log:

Fixed a critical bug. Everybody should upgrade immediately.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJS8kozAAoJEFOhyXc7+e2AwbwQAOz6ms/2Rj1hL7mDmWsbVlXq
9h98rog32qmmGHAkgHLggfx9MEWZXwXdV55jhyt/8wKjLv2tqJXb2039HdBpriSF
P2UHlcWKiAH1T9+zr6gwpB/o2+T0fjlOoxF80se5tRmKJzOdfxg0dQiHRxik65bM
O8YZR9j6LwEXjLW+p0L5xBT0lARvmQM/I6L4tlkZBjTnjZNHcKOPjAnNQ2NYw/ih
nQLFQnNXtVR0XdindVeguEa1iQprvh3DMrxlmB8LxhX2ma1AFtfARW0ac8BJBNMx
RiwyJZhIaaQipoaNp2Wiot2usk3A3r/MYNu2XcICHDkICOtySdgpHPGWJFAs08hV
2b02OWypyhKdYjSMsgYeaGhxMC8pKFLP598P3g817i5g+8uIC04RIsSQx3dJz22l
n1xVkhPqzU1/5BRdnly9+ApznnmJ/5bIczc6nDIkJyfVyR549mqpnJLvDKTu/aOn
mbuOR8ELOT01AAUVC1bUeuX9lxRwsZv/6ibJZywER277FPMoyJFcpmfdeU/4Anwq
xgkvleesH/wq7tyRhlj3CFn2Iuqj2B7bGfMOVbeIh/Jk+bFXWTvsb4t97tO2e7j6
Gumhmy/sgzSDVqFcg3a69hINEOCJ+sM4+LffY4N8EHUfoddau0CyGKa5LX9LjGxL
Xk2Osy6Hzs+Ar+fKHiVS
=UO7x
-----END PGP SIGNATURE-----
227  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 10:46:24 AM
Yes, override Transaction.Type.isDuplicate() to check for such duplicate transactions, trying to cancel the same order, similar to the way it is already done for alias assignment transactions.

Let's decide what a criterion to use for choosing a duplicate. We remove:

1. A transaction with lower fee
2. A transaction with earlier timestamp
3. A transaction that is received later
Currently transactions are sorted based on the Transaction.compareTo() method which is:

Code:
    public int compareTo(Transaction o) {

        if (height < o.height) {

            return -1;

        } else if (height > o.height) {

            return 1;

        } else {

            // equivalent to: fee * 1048576L / getSize() > o.fee * 1048576L / o.getSize()
            if (fee * o.getSize() > o.fee * getSize()) {

                return -1;

            } else if (fee * o.getSize() < o.fee * getSize()) {

                return 1;

            } else {

                if (timestamp < o.timestamp) {

                    return -1;

                } else if (timestamp > o.timestamp) {

                    return 1;

                } else {

                    if (index < o.index) {

                        return -1;

                    } else if (index > o.index) {

                        return 1;

                    } else {

                        return 0;

                    }

                }

            }

        }

    }

and the first transaction in that sort order wins in case of duplicates. I don't want to complicate it and have the logic different for different types of transactions, let's keep it same for all.
228  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 10:18:02 AM
It's not that simple, coz validateAttachment() will return true for 2 different unconfirmed transactions that cancel the same order. After one of them is confirmed another transaction will never be confirmed. This makes it very cheap to DoS nodes - just send 1000000 transactions that cancel the same order. If we included all such transactions into blocks then DoSing would be very expensive.

Is there another way to counteract the DoS attack?
Yes, override Transaction.Type.isDuplicate() to check for such duplicate transactions, trying to cancel the same order, similar to the way it is already done for alias assignment transactions.
229  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 10:06:52 AM
It's not that simple, coz validateAttachment() will return true for 2 different unconfirmed transactions that cancel the same order. After one of them is confirmed another transaction will never be confirmed. This makes it very cheap to DoS nodes - just send 1000000 transactions that cancel the same order. If we included all such transactions into blocks then DoSing would be very expensive.

Is there another way to counteract the DoS attack?
The second invalid transaction will be removed when its deadline expires. I don't like including invalid transactions in the blockchain just for the purpose of preventing a theoretical attack. By that logic we shouldn't bother validating transactions at all. And once we allow invalid transactions in the blockchain, we can't change our mind in the future easily. And a DoS attack can be conducted just by making a sufficiently large number of http requests of the types that are expensive to process anyway, whether they create transactions or not, so we need a better way of dealing with those.
230  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 09:32:36 AM
Btw, what do u think of the approach when dumb actions, like an attempt to cancel a non-existent bid order, r processed without sanity checks? The fee is paid, transaction is added to the block but the state is not changed.
I don't like the idea, at least in this case it is very simple to enforce such a check, in Transaction.Type.ColoredCoins.ASK_ORDER_CANCELLATION just add:

boolean validateAttachment(Transaction transaction) {
                    Attachment.ColoredCoinsAskOrderCancellation attachment = (Attachment.ColoredCoinsAskOrderCancellation)transaction.attachment;
                    if (Order.Ask.getAskOrder(attachment.getOrderId()) == null) {
                        return false;
                    }
                    return Genesis.CREATOR_ID.equals(transaction.recipientId) && transaction.amount == 0;
}
231  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 08:57:27 AM
excellent progress!
when will be able to use it? Smiley
Bug CfB to port his asset exchange bugfixes and APIs from 0.5.9 to 0.6.0, this is what I am waiting for, then we will get rid of the obsolete 0.5.x.
232  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 08:20:20 AM
I wrote most of the db code yesterday and today, and I am running it for the first time now. Let's see how many stack traces I find in the log tomorrow morning. Hope to have it ready for release by the end of the week.
Update: No errors in the logs on my two machines. I even forged a few blocks with 0.7.0. Tried loading the blockchain from scratch with -Xmx256M, didn't go out of memory, but feels slower because the database doesn't get enough cache in this case (db cache is set to 50% of the available memory).

Get State:
{ "lastBlock": "6196662565553489403", "numberOfAliases": 56879, "lastBlockchainFeeder": "184.166.159.100", "numberOfBlocks": 58509, "numberOfPeers": 776, "totalMemory": 238551040, "numberOfUnlockedAccounts": 0, "freeMemory": 46919888, "maxMemory": 238551040, "numberOfTransactions": 115865, "numberOfUsers": 0, "version": "0.7.0", "numberOfOrders": 0, "totalEffectiveBalance": 98535822400, "time": 6293793, "availableProcessors": 4, "numberOfAssets": 0, "cumulativeDifficulty": "1812805398112686", "numberOfAccounts": 21966 }

I also updated the javadoc at https://nxt.airdns.org:7875/doc/ to the latest 0.7.0.
233  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 05, 2014, 12:03:59 AM
Does it still have the web client interface on
http://localhost:7874 and https://localhost:7875 ?!
Yes. I haven't made any changes to the javascript client.
Quote
What are the plans for the web client in future?
Will be developed further on or will be removed from the
distribution?
Will not be developed, will be removed only after a complete replacement client is available, web based or not.
234  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 04, 2014, 07:16:46 PM
Is there like a database server process running that clients could connect to and execute SQL statements?
In theory, if auto server mode is enabled this should be possible, I haven't tried it yet:
http://www.h2database.com/html/features.html#auto_mixed_mode
If it works, it should be optional. I will probably make the whole jdbc connect url a configurable parameter so that users or client developers could tweak such settings.
235  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 04, 2014, 06:37:20 PM
Out of curiosity, is it still going to be just a zip file that we drop into a folder and create a batch script to run, or are there prerequisites that will need to be installed?
Yes, same zip file for now. The H2 database is a single 1.6 MB jar file that I put in webapps/root/WEB-INF/lib/. The blocks.nxt and transactions.nxt (and .bak) files will not be needed anymore. Instead, the database is kept under nxt_db subdirectory, currently takes 99 MB (compared to the blocks+transactions.nxt files taking 30 MB total).

The next step I consider, but haven't decided for sure yet, will be to switch to embedded jetty. Then the configuration of the Nxt server will be done using properties file, not the web.xml file. And it may require more reorganization of the whole zip file. But this is 0.8.0 stuff at least.
236  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 04, 2014, 06:25:28 PM
In the meantime, I wish to report that 0.7.0 is running successfully with an H2 database backend, no more serialized java object files. No need to keep all blocks and transactions in memory anymore.


great, any ETA already?
First CfB should port the Asset Exchange bugfixes and new APIs to 0.6.0, and at the same time I plan to do some profiling and optimizations of 0.7.0 if needed, and then merge the 0.6.0 and 0.7.0 branches. I wrote most of the db code yesterday and today, and I am running it for the first time now. Let's see how many stack traces I find in the log tomorrow morning. Hope to have it ready for release by the end of the week.

237  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 04, 2014, 06:07:46 PM
In the meantime, I wish to report that 0.7.0 is running successfully with an H2 database backend, no more serialized java object files. No need to keep all blocks and transactions in memory anymore.

238  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 04, 2014, 06:03:56 PM
If the bandwith usage is too much for you, set shareMyAddress to false in web.xml, and remove myAddress (set it to an empty value). This should stop other peers from trying to connect to your node.
does it affect forging?
It shouldn't, when your node generates a block it will broadcast it to 10 of its peers. I forge on a node behind Tor, and necessarily use shareMyAddress=false myself.
239  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 04, 2014, 05:59:19 PM
Update on the bandwidth question: https://nextcoin.org/index.php/topic,3755.0.html
If the bandwith usage is too much for you, set shareMyAddress to false in web.xml, and remove myAddress (set it to an empty value). This should stop other peers from trying to connect to your node.

240  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 01, 2014, 05:51:58 PM
I have generated a javadoc as a preview of what the public API of 0.6.0 looks like at the moment:

https://nxt.airdns.org:7875/doc/

This is for Java developers planning to use this API directly instead of the http/json based interface. It is of course subject to change. Private and package-local classes and methods are not included, in case you wonder why so few classes.

Me and CfB decided to start applying the asset exchange related bugfixes and new APIs to the 0.6 branch, and start using that for testing the AE. This means the 0.6 branch may get released even before the database transition, which I will work on in a different branch, depending on when the AE functionality is ready.
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!