Bitcoin Forum
June 23, 2024, 05:08:45 PM *
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 »
141  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 22, 2014, 12:23:16 PM
enterprise: so without transparent forging?
The TF changes will be applied and released as they come from BCNext, even I don't know when and what the next steps are.
142  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 22, 2014, 12:21:19 PM
Btw. Am i still on the correct test net http://holms.cloudapp.net:6874/ it could be on my side (just did a major refactoring) but peers seem to be blacklisted constantly (at least the two peers available) so no blocks are downloaded. I will be integrating 0.8.0e immediately so lets see if troubles remain.
I don't know, I admit I have never used the test net. CfB deals with updating the test net, and handling the AE bugfixes, I am not even sure what version the test net server is on currently.
143  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 22, 2014, 12:18:24 PM
What do the Nxt stakeholders think about releasing the current source code earlier than April 1st?

We discussed this with CfB some time ago, as a way to get more developers involved and make it easier for client developers, not having to rely on decompiled code to see the Nxt internals. The copycats are already decompiling the Nxt classes, so there aren't any hidden secrets. I thought I would at least wait until I finish the 0.8.0 refactoring, but now that this is also released, it may be a good time to think about making the source open earlier, say March 1st?
144  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 22, 2014, 12:01:26 PM
"Account Control" was mentioned. Could someone give a brief explanation of this feature.
Ask CfB, I know nothing about it.
Quote
Could you possibly add a way to determine if an account is forging. You can turn on forging on the Generator class but you cant determine if an account is forging since the hasmaps are private on that class. Something like Generator.isForging(Account account)
There is Generator.getGenerator(secretPhrase) in 0.8.0, and a corresponding getForging http api request. The secretPhrase is required for privacy reasons, you shouldn't be able to find out which accounts are forging on a node unless you own that account.
Quote
Also. Could you please add a way to set the database and config file locations, since now the java current directory is used desktop client users must navigate to the actual folder that contains the jar (or executable launcher in my case) in order for NXT to reference the correct (relative) database location.
The full jdbc url is configurable now, and the nxt.properties file just needs to be in the classpath. Or you can completely substitute it with your own Properties object in Nxt.init() (this is not tested at all).

Yes, and I added the fullReset feature. It however increases the size of the database temporarily, until a compact is run at shutdown.
145  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 22, 2014, 11:56:02 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Release 0.8.0e

http://download.nxtcrypto.org/nxt-client-0.8.0e.zip

sha256: 12ea7642953934b4b36cb833c500afefc9d1521776a298e3a6b6473cb0303a0c


Change log:

This release introduces a major change in the Nxt server architecture.
Instead of being a servlet run by Jetty, Nxt is now a standalone
application which itself launches Jetty servlets, when needed.
This should make it easier to use as a Java library, as it no longer
needs to be run inside a servlet container.

The Nxt configuration has been made more flexible, both for the end user
and for application developers. Nxt no longer uses web.xml, or any xml
files for that matter. Instead, a user-friendly properties file is used.

The layout of the distribution has been changed and simplified. Unpacking
the zip file will produce the following directory structure:

nxt/conf/
This is where the configuration files are kept. All default properties
are in conf/nxt-default.properties. You should never edit this file,
unless you are a packager or client developer who needs different
defaults for his distribution.
All default values are reasonable, so Nxt can just be started without
any configuration. If however the end user wants to customize some
parameters, the way to do that is to create another properties file,
conf/nxt.properties, containing ONLY the properties that need to be
different from the defaults. Nxt will read both nxt-default.properties
and nxt.properties, and the values in nxt.properties will override those
in nxt-default.properties.

nxt/html/
This contains the html files needed for the NRS javascript based client,
under html/nrs, the html-based tools such as admin.html and update.html
under html/tools, and the javadoc documentation for the Java API under
html/doc.

nxt/lib/
This is where all required Java libraries are kept - Jetty, H2 database,
and the JSON-simple library. All Jetty libraries that are not used by Nxt
are no longer included, which also results in a smaller distribution
package.

nxt/nxt.jar
This jar contains all compiled Nxt classes.

nxt/run.sh
This script is the simplest way to start Nxt, under Linux:
java -Xmx1024M -cp nxt.jar:lib/*:conf nxt.Nxt
As you can see, the classpath needs to include nxt.jar, all the jars under
lib, and the conf directory.

Notably missing are start.jar, webapps, and the Jetty configuration
directories, which are no longer needed.

In addition to the switch to embedded Jetty, significant refactoring of the
code has been done, which may be of interest to users of the Java API. The
changes are too many to describe here, but can be easily seen by comparing
the javadoc of 0.8.0 with that of the 0.7 branch. Most notably, interfaces
have been defined for the Block and Transaction classes, the Blockchain
class has been split into several classes, and the Peer and User classes
have also seen some clean up.

Client developers using the Java API can override any of the default
properties by submitting a custom Properties object to Nxt.init().

The configurable properties in nxt-default.properties are all documented in
the comments in that file. Some additional details about those:

Nxt will start up to three different Jetty servers, if needed.

The peer networking server accepts http requests from peers. It is only
started if nxt.shareMyAddress=true (which is the default). If you are behind
a firewall and don't have an externally visible IP, you can set this to false
to disable it.

The port and host interface of the peer server are configurable. If you set
a non-default port in nxt.peerServerPort, this will be appended to the address
you announce to peers (this address should be set in nxt.myAddress). Using
non-default peer networking port hasn't been tested much though.

For a machine with multiple network interfaces, now you can specify on which
interface to bind each server. By default, nxt.peerServerHost=0.0.0.0 so the
peer networking server listens on all interfaces.

There are no hardcoded nxt.wellKnownPeers in the default properties files.
You are supposed to set those to your own preferred peers in nxt.properties.
However, if none are set, a random selection of nxtcrypto.org and nxtbase.com
public nodes will be used.

The DoS Filter is enabled for the peer server only.

The API server accepts http/json API requests. By default, now it runs on port
7876, and listens on the local 127.0.0.1 interface only. If you run a public
node and want to accept API requests from anyone, set nxt.apiServerHost to
0.0.0.0, and nxt.allowedBotHosts to * (or empty).

The nxt.apiResourceBase points to a directory of static html files that are
also served by the API server. Developers of clients using the http/json API
will want to customize this to point to their client html and javascript files.

The Jetty Cross Origin Filter can be enabled for the API server by setting
nxt.apiServerCORS=true (disabled by default).

The UI server is used for the NRS javascript client UI. By default it runs on
port 7875 and accepts requests from localhost only. Client developers using
the same API calls as the NRS client (not the http/json ones) should customize
nxt.uiResourceBase to point to their client html and javascript files instead.

SSL can be enabled for both the API server and the UI server (default disabled).
If this is done, the corresponding ports will accept https requests only. There
is no way currently to have both http and https supported at the same time, but
this can be added, I just didn't see the need for it.
If you enable SSL, you need to set nxt.keyStorePath and nxt.keyStorePassword,
and obviously you need to have your own SSL certificate (self-signed or signed
by a CA) in a keystore file. I have only tested this with a self-signed
certificate.

Client developers using the Java API will probably want to disable both the
API server and the UI server, and for users without a visible IP address
even the peer server.

Debugging output is now disabled by default, but can be enabled by setting
nxt.debug=true. Exception stack traces will still be logged, as long as
nxt.enableStackTraces=true. I hope there will be none of those.

The connection to the database can be completely customized, as the full
jdbc url used to connect to it is exposed in the properties file and can be
modified. Client developers that insist on being able to access the database
from a separate process, while Nxt is running, can do so by appending
;AUTO_SERVER=TRUE to the jdbc url, which will enable automatic mixed-mode.
This is disabled by default, but if you enable it and write to the database
while Nxt is running, expect things to break.

It is also possible to have the database in a different location, not just
in the current working directory, if you change the jdbc url accordingly.

To change the amount of memory used for the database cache, use the
nxt.dbCacheKB parameter, in kilobytes. If set to 0, by default 50 % of the
memory available to the JVM is used for database cache.

There have been no changes to the database schema, you should use your
existing nxt_db directory with this release too, instead of downloading
the blockchain from scratch.

This release is labeled experimental, but please try it. In particular, the
client developers and packagers should test it well, and if there are no
major issues, expect the 0.7 branch to become obsolete soon.


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

iQIcBAEBAgAGBQJTCIslAAoJEFOhyXc7+e2AnuoP/08xD1mjeNmv8/vBkSq39MhH
z+FToey65bbg2gQOSxMSdnr35C8oucS5kwBltCVvcXNyoyAEPZfsFfig3a1m5m2H
5TaJOywdH88ve9M1RouV2jdCo3Y7WAXC5uP8iHzp5YYVaR3XlhIwYW74uk62qQqn
NICuvmDhutDDcDGq+IkdR80x7XjqaReuXGZ44MHr2xNlQetkKLvB6kVcB7JhuZYt
KmufeCSC5qcFFdVsfZHN3xP5Mg+65VCGZayKDiJT0+uP5wfwlAPFqak25sLerfHn
fEi349W7afKw3FES1uvTIPBxnO4CShmhCzOvK4Yy3K5I4INSTWqQumEEDRL7STM2
wqhph5ewGEqJ0W+3yQN+j6AG33aawGoICLevkY2+g3+aaZ/cy1KjIiAns/ed33XB
nm2prnkvO2jNipNxcRUH5AP+o6+2k6LAfDxAzTHFWXboSQgr8RFWdwQP+R4Lvvbm
jaGiaqIvLzwyFboWgpkXwBZuhmVe1+L+icbUscUMW7gXm5XNpLgyOmPz3wuHUAe1
tqcpdW6EoiKIbHPgDkKyyRNugXuG18LdqHEW4RqpwuQIlBRoMkQ5Gzo7GSk7eLko
I+YNAktBiRv2W4dl1R1ngltwsoYCK4FBU4nWRhHjMzgjHrSCfaehi0rS42SbPfJE
cFUk+6MeaSGu+q35NOSD
=Zrbu
-----END PGP SIGNATURE-----
146  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 20, 2014, 09:47:49 PM
A preview of the 0.8.0 Java API:
http://nxt.airdns.org:7875/doc/
147  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 20, 2014, 03:06:10 PM
We included the ability to start and stop Jetty since we like the user to be able to delete the blockchain and start-fresh from a command in the UI
Re-init after shutdown will be tricky to support for me, because in many places I have init-once only singletons or static blocks, but for this use case I can probably provide a Nxt.fullReset() method that just deletes the genesis block from the database (and if I can trust the database triggers, this should wipe the rest of it too).
Quote
What can you say about the status of the database, will it remain H2 and will this remain an internal implementation or do you see developers accessing or updating data in the database them selves?
I am not changing anything about the database. Some people have asked me about using mixed-mode for it, where a tcp server is started automatically and external processes can connect to it. I don't want to enable this by default for security and performance reasons, but I will make the database jdbc url a parameter in the nxt.properties so that client developers can do such tricks in their customized distributions. It is not possible to restrict db access to read-only for such an external process, so if you abuse that and write to the db expect things to break.
Quote
Also, regarding custom colored coins. Will you be doing some more standardization in that area? Will there be more work towards an API to work with *custom* attachments? Not that it's strictly needed just wondering if you had ideas in that area.
Haven't thought about this at all yet. But yes, I realize that transaction attachment types don't need to be all hardcoded, one day you can have custom attachment types that just need to conform to some API, and not even need to be supported by all clients.
148  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 20, 2014, 11:59:47 AM
My current setup is that i use embedded jetty and feed the Nxt servlet on startup to jetty.
What's the setup you use for jetty? Will i still need to embed my own or will 0.8.0 take care of that?
You shouldn't need to deal with jetty directly. You call Nxt.init() which will trigger all initializations, and will start the jetty servlets it needs (if nxt.shareMyAddress=false, it will not start the PeerServlet, if nxt.enableUIServer=false it will not start the UserServlet for the NRS UI), and is safe to call multiple times. Then, there will be Nxt.getBlockchain(), Nxt.getBlockchainProcessor() and Nxt.getTransactionProcessor() to get hold of the corresponding singletons. The init adds a shutdownHook to handle stopping the threads and closing the database at the jvm shutdown, I assume you never need to shutdown it explicitly once started until the application exit.

That's a lot of changes I am going through, so 0.8.0e should come out some time next week, and I will have to keep it compatible with 0.7.6 peers until client packagers and developers transition to 0.8.0.
149  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 20, 2014, 11:13:22 AM
Will the interfaces for the major components (Account, Transaction, Peer etc..) stay roughly the same?
Also the listener interfaces, will they remain?
Some of them. There are two big changes. First, Nxt is no longer a servlet and does not need to follow the servlet init/destroy lifecycle anymore. It is initialized reading its properties from nxt.properties instead of web.xml. If needed, it will start a PeerServlet that accepts peer-to-peer requests, an APIServlet that serves http/json API requests, and a UserServlet that supports the current NRS javascript client. You can disable all of those in the properties file, so if you are only using the Java API, and don't have a public IP on which to accept incoming peer requests, you will not be running any servlets at all.

Second, I am making Block, Transaction, and Blockchain, interfaces. The current Blockchain class is a bunch of static methods, I am splitting those into BlockchainProcessor, TransactionProcessor, and Blockchain/BlockchainImpl classes. All those will be singletons instead of collections of static methods, which I believe is more flexible in the long term.

Peer has also been split into Peer (an interface), PeerImpl (package-local implementation), and Peers (static methods that handle the whole set of peers).

Account, Asset, Order, Alias, etc, will not change for now. In the future I will have to move them to the database, so I don't want to waste time refactoring them now only to change them again later.

I will try to keep the Listener interfaces, and see how I can use them to accommodate your request for monitoring the initialization steps too.
150  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 20, 2014, 10:26:19 AM
Ideally there would be a listener you could register or some sort of progress monitor. In eclipse you have the IProgressMonitor interface, such an interface would be perfect, i included a simplified example.

public interface IProgressMonitor {
  public void beginTask(String name, int totalWork);
  public void done();
  public void worked(int work);
}

The monitor would be provided by the user and is passed to the various startup methods. When reading the blockchain (for instance) you would call monitor.beginTask("Read blockchain", totalNumberOfBlocks) and then on each (or each 5th, 10th etc.) block read you call monitor.worked(numberOfBlocksRead). At the end you would call monitor.done().[/i]

A listener for log messages would be very nice to. I now remove the nxt.util.Logger class and replace with my own in order to display messages in the dialog that displays startup progress. Not a clean solution at all.
I will keep that in mind. I am making a lot of changes in 0.8.0. Will think about how to do it when I get to it.

151  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 10:04:20 PM
Okay, I see. This was not what I meant. I meant, could it be possible to force popping off blocks containing alias transactions and therefore causing a rescan over and over again?
No, to force a block pop-off you need to have a better block / longer chain, etc. This cannot be faked, and if a peer lies about its cumulative difficulty and causes a rescan because of that, it gets blacklisted, for 5 min by default. And when one day we keep more stuff in database instead of in memory, the need for rescans will also be reduced.
152  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 09:49:16 PM
Maybe I should just disable debug logging by default, it only makes people think something is wrong. The intention was to make it easier to follow what is going on with the block and transaction processing, in the cases where something does go wrong.
153  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 09:46:12 PM
Jean-Luc

Please finally confirm, that messages "DEBUG: Block XXXXXXXXXXXXXXXXXXX not accepted. Previous block id doesn't match" are not a problem. I get these messages on 90% blocks of blockchain on my Android TV stick public node. Nobody explained what does it mean and I don't want be a problem on the whole network with my public node.
If you check the block id and the latest blocks in your client, you will almost always see that this same block was actually accepted. Especially when you are running a public node, when a new block appears on the network many of your peers will submit it to you at the same time. Obviously, only one of those submissions gets included in the blockchain, and just after that happens for all the others the previous block id is no longer the same, so they get rejected.
154  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 09:42:50 PM
@JL

You told us that in case of an invalid alias transaction, you need to rollback and rescan the complete blockchain again. Couldn't it be possible to force that rescan over and over again?
No, I didn't say that. An invalid alias transaction will never make it into the blockchain in the first place.
When a block is popped off, if it happened to contain a (necessarily valid) alias assignment transaction, this requires a blockchain scan. The block pop-off has nothing to do with the alias transaction in it, and cannot be forced by an invalid transaction.
155  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 05:15:40 PM
following errors in 7.6, but running


Code:
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:00.643] DEBUG: Invalid transaction attachment:
{"alias":"greenenergymarket","uri":""}
[2014-02-19 17:46:00.643] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 6871
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:00.646] DEBUG: Invalid transaction attachment:
{"message":"d5664d4c6a788a6c639da093f952c1c87669aecbff05695fa62784251d639ddcc8cd
12a576de592ad929f3e035af881372b9a42e3a6310193fc486d51b408ecbadc79aa5260db0d55ad3
eda0db9acce23a1588881e9c141419e9baba43dde842"}
[2014-02-19 17:46:00.647] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Arbitrary messages not yet enabled at he
ight 6872
        at nxt.Transaction$Type$Messaging$1.validateAttachment(Transaction.java:
755)
        at nxt.Transaction$Type$Messaging$1.loadAttachment(Transaction.java:743)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:00.650] DEBUG: Invalid transaction attachment:
{"alias":"NRSrelease","uri":"http:\/\/download.nxtcrypto.org\/nxt-client-0.7.6.z
ip"}
[2014-02-19 17:46:00.650] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 6872
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:00.653] DEBUG: Invalid transaction attachment:
{"alias":"NRSversion","uri":"0.7.6 c219d6a13c870ea7f454fe1e91efe6c6098bed767156a
a8921aad0bebe9fe79a"}
[2014-02-19 17:46:00.653] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 6873
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.216] DEBUG: Invalid transaction attachment:
{"alias":"distributedenergymarket","uri":""}
[2014-02-19 17:46:07.216] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8270
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.219] DEBUG: Invalid transaction attachment:
{"alias":"hkland","uri":""}
[2014-02-19 17:46:07.220] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8271
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.222] DEBUG: Invalid transaction attachment:
{"alias":"nxtgreenenergymarket","uri":""}
[2014-02-19 17:46:07.222] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8271
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.225] DEBUG: Invalid transaction attachment:
{"alias":"NXTCraft","uri":""}
[2014-02-19 17:46:07.226] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8272
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.229] DEBUG: Invalid transaction attachment:
{"alias":"NXTScape","uri":""}
[2014-02-19 17:46:07.230] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8272
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.233] DEBUG: Invalid transaction attachment:
{"alias":"greenenergymarket","uri":""}
[2014-02-19 17:46:07.233] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8273
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.236] DEBUG: Invalid transaction attachment:
{"message":"d5664d4c6a788a6c639da093f952c1c87669aecbff05695fa62784251d639ddcc8cd
12a576de592ad929f3e035af881372b9a42e3a6310193fc486d51b408ecbadc79aa5260db0d55ad3
eda0db9acce23a1588881e9c141419e9baba43dde842"}
[2014-02-19 17:46:07.236] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Arbitrary messages not yet enabled at he
ight 8274
        at nxt.Transaction$Type$Messaging$1.validateAttachment(Transaction.java:
755)
        at nxt.Transaction$Type$Messaging$1.loadAttachment(Transaction.java:743)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.239] DEBUG: Invalid transaction attachment:
{"alias":"NRSrelease","uri":"http:\/\/download.nxtcrypto.org\/nxt-client-0.7.6.z
ip"}
[2014-02-19 17:46:07.239] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8274
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:46:07.242] DEBUG: Invalid transaction attachment:
{"alias":"NRSversion","uri":"0.7.6 c219d6a13c870ea7f454fe1e91efe6c6098bed767156a
a8921aad0bebe9fe79a"}
[2014-02-19 17:46:07.242] DEBUG: Dropping invalid transaction
nxt.Transaction$NotYetEnabledException: Aliases not yet enabled at height 8275
        at nxt.Transaction$Type$Messaging$2.validateAttachment(Transaction.java:
831)
        at nxt.Transaction$Type$Messaging$2.loadAttachment(Transaction.java:801)

        at nxt.Transaction.getTransaction(Transaction.java:157)
        at nxt.Blockchain.processJSONTransactions(Blockchain.java:796)
        at nxt.Blockchain.access$000(Blockchain.java:40)
        at nxt.Blockchain$1.run(Blockchain.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2014-02-19 17:49:57.457] Checksum passed at block 30000
Again ignore, those are harmless, I forgot to comment out the debug logging. Throwing a NotYetEnabledException is the normal way that such errors are handled, and from the point of view of your node which is behind in loading the blockchain, those features are indeed not yet enabled. When it catches up with the current blockchain head, it will no longer consider those transactions invalid.

156  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 05:11:36 PM
is there an api call that returns all api calls, or is it possible to access the javadoc @ https://nxt.airdns.org:7875/doc/ to get a list of all api calls? I am a bit panicky on missing out on important things, e.g. as with the vote thingy, which I only just picked up en passant
There is no API to get them all, but in the javadoc each class under the nxt.http package handles exactly one API call. Unfortunately I haven't had the time to document their parameters and return values in the javadoc itself.
The javadoc is also available on your local node under webapps/root/doc.
It was CfB who added the voting system, and it is not enabled yet, so I didn't have much to say about it in the changelog.
157  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 04:56:06 PM
[2014-02-19 17:38:49.529] DEBUG: Invalid transaction attachment:
{"message":""}
[2014-02-19 17:39:05.914] DEBUG: Invalid transaction attachment:
{"message":""}
[2014-02-19 17:40:16.537] DEBUG: Invalid transaction attachment:
{"message":""}
[2014-02-19 17:41:01.844] DEBUG: Invalid transaction attachment:
{"message":""}
Ignore those. They are ignored in the code when the block height at which the corresponding attachment type is enabled is not reached yet, but I forgot to also ignore them in the debug logging.
158  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 04:48:11 PM
What happens if somebody else sends his private key to that very node? Will it start forging for that account, too? Will is stop forging for the first account? And last but not least, how many accounts can a node forge for?
There is no limit, it will forge for all those accounts. To prevent overloading the node with random bogus secret phrases, those have to match existing accounts, which have had at least one incoming or outgoing transaction.
159  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 04:34:10 PM
I checked this signature, it says "Signature made Sat 15 Feb 2014 12:30:29 AM CST"
but the post is made before that. did I miss something?
Something is wrong in your time or timezone settings. I checked the signature of the post you quoted again, and it is from Fri 14 Feb, same as my original post. All EU and US timezones were still in Friday at that time, the hour and minute match so it is a timezone issue.

160  Alternate cryptocurrencies / Announcements (Altcoins) / Re: NXT :: descendant of Bitcoin - Updated Information on: February 19, 2014, 04:28:01 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Release 0.7.6

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

sha256: c219d6a13c870ea7f454fe1e91efe6c6098bed767156aa8921aad0bebe9fe79a


Change log:

Compact the database at every shutdown. This should help reduce the size
of the nxt_db directory after the first run, check the before and after
disk usage.

Prevent duplicate peer listings in the known peers and blacklisted peers
frames.

Prevent a potential duplicate account key attack, of the type described
here:
https://bitcointalk.org/index.php?topic=397183.msg4569817#msg4569817

Added Voting System, not yet enabled.

Some refactoring of the Block and Transaction classes.

Asset exchange bugfixes from the test network and more API requests.

Improved validation of transactions to prevent wrong blacklisting of
peers, and to better enforce transaction validity.


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

iQIcBAEBAgAGBQJTBNkwAAoJEFOhyXc7+e2AziEQAJuy9YMEnIfXjaEipm68EklP
XSMWVWBZt1bUsIMZiY7Gu20xV0OxZU68QBIhfFJqX/ZN+grn78pSdQeuOU/gMYdk
YIqZDh2qr7TAVd+On7cMJZ1a41V8av9Xqk/Uy1ydj3A+ZXb3jO0aNzb/f/VvlbGb
DWvO1s7KBA1yghdFQvy/0zxD7hYWcjm2rWe/3UvSTv+qhQCsPQDbdNTg+uUFwvof
SgnnW6NiOaKWrMDc0YFAFMbCDt7LjeY5+Ek1lW3Z0ZZtIJuTuMHWYRo7MoMj1aXO
zEIUOAYGxRbZLClBEFxtIwwF+Kfi75xYlK9pcchl7Wo0a9ooPG9EjqJy+H7f6bmk
xW3frfdIKPy5lZx0H05YnuU9ttUPr0snbWWuDtZQ9CeMzOSKyX/lYsiiUQdbNlGr
FrF4+uLIUXGhBULPNX7P88Om6FYNFVAbgtYxqZSLVIj+5ppZZJxo5rk1A+i2is3A
DKioarK9d7Vy2yMB+FGf3Se03cVmJsdPuqRylw66+PGj+48Ei1Uvzru7lbl8Rqag
guNN48NBm0xuXfBuakPfC7aa1+W2lllB3piJCW/hScbdHtEDsaBsDcYoDAC4CcBV
zpE60AgLClhAinwM4VEkZ7ntSTk83ImR3Ii5HRG7Ip0bzp/MdPcGZ4ifzI/VUH01
DeQ2cjfsCSNbOD61QK/W
=MadH
-----END PGP SIGNATURE-----
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!