Author

Topic: NXT :: descendant of Bitcoin - Updated Information - page 553. (Read 2761624 times)

legendary
Activity: 1176
Merit: 1134
Testnet server with HTTP API enabled:

http://tn01.nxtsolaris.info:6876

This is meant to be run long-term, so if JL wants, it can be added to nxt.testnetPeers in the default conf file of the distribution.
I can at least get the API going through http://tn01.nxtsolaris.info:6876
However, I seem to be stuck on block 76277, 16499036577215043123

James
legendary
Activity: 1181
Merit: 1018
0.8.4e still has bugs in unconfirmed balance handling. Wait until I release a fix.


yes, I did see 85,000 in the unconfirmed balance instead of 10,000 on my real nxt working account today
legendary
Activity: 1778
Merit: 1043
#Free market
Testnet server with HTTP API enabled:

http://tn01.nxtsolaris.info:6876

This is meant to be run long-term, so if JL wants, it can be added to nxt.testnetPeers in the default conf file of the distribution.



AMAZING !!!!
legendary
Activity: 1176
Merit: 1134
Testnet server with HTTP API enabled:

http://tn01.nxtsolaris.info:6876

This is meant to be run long-term, so if JL wants, it can be added to nxt.testnetPeers in the default conf file of the distribution.


Great! So I dont have to mess with getting external access.

Do you know the proper curl syntax to use to local server API?

James

Edit: curl -d '{ "requestType" : "getState" }' 127.0.0.1:6876 Still getting errors:

Problem accessing /. Reason:

    HTTP method POST is not supported by this URL

full member
Activity: 224
Merit: 100
Testnet server with HTTP API enabled:

http://tn01.nxtsolaris.info:6876

This is meant to be run long-term, so if JL wants, it can be added to nxt.testnetPeers in the default conf file of the distribution.

hero member
Activity: 910
Merit: 1000
Is anyone interested in building a decentralized storefront? This was planned by BCNext but cancelled for unknown reasons... Now that the source is available, someone could build it.. I think it would be of great value to have this. Think decentralized ebay...

Now I don't know java, which is why I'm posting this idea here.

That's right. He talked about decentralized shop for different goods. His idea was to solve this with AM and reputation system, i think. That way, our AE wouldn't get bloated with every crazy shit people imagine (like issuing assets for selling two comic books Wink), maybe.

Reputation system - should we discuss it?
legendary
Activity: 1181
Merit: 1018

To make API accessible from outside, you also need to set:
nxt.apiServerHost=0.0.0.0
nxt.allowedBotHosts=*



yeeh! thanks JL, that little detail had been missing for my raspi also. I habe only been able to access on localhost  Grin

hero member
Activity: 600
Merit: 500
Nxt-kit developer
OK...  0.8.3  &  0.8.4e work like champs...  but why do they crash if left unattended...  is there some type of timeout setting we need to change when we are away from our workstations for several hours?    Undecided

Solution for Linux.
legendary
Activity: 1176
Merit: 1134
Can someone who has a test server enable API cors and api access? (two settings in nxt-default.properties)

And tell me the server name so I can use that. The bug.airdns.org doesn't accept API access...

So that my online nxt client will work again.
Not sure I got all the settings right, here is the nxt.log output

Server IP is 209.126.73.160

James

I can't even connect to that ip (without even using api)
Hmmm... Maybe I need to be running apache on it? I dont think it has a webserver
can you ping the server?

James
sr. member
Activity: 392
Merit: 250
0.8.4e still has bugs in unconfirmed balance handling. Wait until I release a fix.
sr. member
Activity: 308
Merit: 250
Can someone who has a test server enable API cors and api access? (two settings in nxt-default.properties)

And tell me the server name so I can use that. The bug.airdns.org doesn't accept API access...

So that my online nxt client will work again.
Not sure I got all the settings right, here is the nxt.log output

Server IP is 209.126.73.160

James

I can't even connect to that ip (without even using api)
legendary
Activity: 1176
Merit: 1134
I was asked how I setup testnodes:

The first part is just to get the clock right, probably dont need to do it every time

After logging into Ubuntu:

********

date
sudo service ntp stop
sleep 5
sudo ntpdate ntp.ubuntu.com
sudo service ntp start
date

sudo aptitude install openjdk-7-jre

wget http://download.nxtcrypto.org/nxt-client-0.8.4e.zip
unzip nxt-client-0.8.4e.zip
cd nxt/conf

# edit file and change two lines
nxt.testnetPeers=bug.airdns.org
nxt.isTestnet=true


cd ..
nohup ./run.sh &
# to stop NXT server safely: pkill -15 java

****

James
sr. member
Activity: 308
Merit: 250
Is anyone interested in building a decentralized storefront? This was planned by BCNext but cancelled for unknown reasons... Now that the source is available, someone could build it.. I think it would be of great value to have this. Think decentralized ebay...

Now I don't know java, which is why I'm posting this idea here.
newbie
Activity: 34
Merit: 0
CfB
Could you add a "comment" field to      requestType=transferAsset
This would really help track things for the gateway
[i am assuming that after a block confirms that I can trust the values in all the fields]

James




AGREE! A comment field would be of great help, and probably not difficult to implement!





A bit more difficult but immensely valuable is to be able to optionally set the denomination in terms of units of another asset. I know the NXTcore cant handle fractions very well now, but maybe while we are changing API, we can put it in there with the understanding that it wont work until NXTcore supports fractions. I hope it can support fractions for assets too!

James

It's hard to overstate how powerful this functionality would be, both for James' use case and for many others.
legendary
Activity: 1367
Merit: 1000
Added run.bat script for Windows users.
Not working.  Sad
Please start forging, as the blockchain is days behind.
Again, what is the risk of forging locally with a "genesis" account?
legendary
Activity: 1176
Merit: 1134
To make API accessible from outside, you also need to set:
nxt.apiServerHost=0.0.0.0
nxt.allowedBotHosts=*
OK, did that and restarted
I still cant invoke the local API...
How do I use curl to talk to it?

James

Code:
[2014-03-04 03:54:22.438] Debug logging disabled
[2014-03-04 03:54:22.438] Exception stack traces enabled
[2014-03-04 03:54:22.438] nxt.isTestnet = "true"
[2014-03-04 03:54:22.441] logging enabled
[2014-03-04 03:54:22.442] nxt.debugJetty = "false"
[2014-03-04 03:54:22.443] nxt.dbCacheKB = "0"
[2014-03-04 03:54:22.443] nxt.testDbUrl = "jdbc:h2:nxt_test_db/nxt;DB_CLOSE_ON_EXIT=FALSE"
[2014-03-04 03:54:22.471] nxt.maxDbConnections = "10"
[2014-03-04 03:54:22.471] nxt.dbLoginTimeout = "70"
[2014-03-04 03:54:23.157] Database is at level 15
[2014-03-04 03:54:23.162] Updated database is at level 15
[2014-03-04 03:54:23.196] nxt.myPlatform = "PC"
[2014-03-04 03:54:23.196] nxt.myAddress not defined, assuming null
[2014-03-04 03:54:23.197] nxt.peerServerPort = "7874"
[2014-03-04 03:54:23.197] nxt.shareMyAddress = "true"
[2014-03-04 03:54:23.197] nxt.myHallmark not defined, assuming null
[2014-03-04 03:54:23.198] nxt.testnetPeers = "bug.airdns.org"
[2014-03-04 03:54:23.198] nxt.knownBlacklistedPeers not defined, assuming null
[2014-03-04 03:54:23.198] nxt.maxNumberOfConnectedPublicPeers = "20"
[2014-03-04 03:54:23.199] nxt.connectTimeout = "2000"
[2014-03-04 03:54:23.199] nxt.readTimeout = "5000"
[2014-03-04 03:54:23.199] nxt.enableHallmarkProtection = "true"
[2014-03-04 03:54:23.199] nxt.pushThreshold = "0"
[2014-03-04 03:54:23.199] nxt.pullThreshold = "0"
[2014-03-04 03:54:23.200] nxt.blacklistingPeriod = "300000"
[2014-03-04 03:54:23.200] nxt.communicationLoggingMask = "0"
[2014-03-04 03:54:23.200] nxt.sendToPeersLimit = "10"
[2014-03-04 03:54:23.339] nxt.peerServerHost = "0.0.0.0"
[2014-03-04 03:54:23.339] nxt.peerServerIdleTimeout = "5000"
[2014-03-04 03:54:23.373] nxt.enablePeerServerDoSFilter = "true"
[2014-03-04 03:54:23.382] nxt.peerServerDoSFilter.maxRequestsPerSec = "30"
[2014-03-04 03:54:23.382] nxt.peerServerDoSFilter.delayMs = "1000"
[2014-03-04 03:54:23.383] nxt.peerServerDoSFilter.maxRequestMs = "300000"
[2014-03-04 03:54:23.468] nxt.allowedBotHosts = "*"
[2014-03-04 03:54:23.468] nxt.enableAPIServer = "true"
[2014-03-04 03:54:23.468] nxt.apiServerHost = "0.0.0.0"
[2014-03-04 03:54:23.468] nxt.apiSSL = "false"
[2014-03-04 03:54:23.469] nxt.apiServerIdleTimeout = "30000"
[2014-03-04 03:54:23.472] nxt.apiResourceBase = "html/tools"
[2014-03-04 03:54:23.507] nxt.javadocResourceBase = "html/doc"
[2014-03-04 03:54:23.519] nxt.apiServerCORS = "true"
[2014-03-04 03:54:23.531] nxt.allowedUserHosts = "127.0.0.1; localhost; 0:0:0:0:0:0:0:1;"
[2014-03-04 03:54:23.532] nxt.enableUIServer = "true"
[2014-03-04 03:54:23.532] nxt.uiServerHost = "127.0.0.1"
[2014-03-04 03:54:23.532] nxt.uiSSL = "false"
[2014-03-04 03:54:23.533] nxt.uiServerIdleTimeout = "30000"
[2014-03-04 03:54:23.533] nxt.uiResourceBase = "html/nrs"
[2014-03-04 03:54:23.533] nxt.javadocResourceBase = "html/doc"
[2014-03-04 03:54:23.535] nxt.uiServerCORS = "false"
[2014-03-04 03:54:23.558] Genesis block already in database
[2014-03-04 03:54:23.558] Scanning blockchain...
[2014-03-04 03:54:48.640] ...done
[2014-03-04 03:54:48.746] Started peer networking server at 0.0.0.0:6874
[2014-03-04 03:54:48.838] Started API server at 0.0.0.0:6876
[2014-03-04 03:54:49.020] Started user interface server at 127.0.0.1:6875
[2014-03-04 03:54:49.154] Nxt server 0.8.4e started successfully.
[2014-03-04 03:54:49.154] RUNNING ON TESTNET - DO NOT USE REAL ACCOUNTS!
Jump to: