Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 25, 2013, 05:24:32 PM |
|
This is not true. I generated two hallmarks with different dates and both are valid
Is there such possibility CfB? Only if there is a bug in software. Let's check together: boolean analyzeHallmark(String realHost, String hallmark) { if (hallmark == null) { return true; } try { byte[] hallmarkBytes = convert(hallmark); ByteBuffer buffer = ByteBuffer.wrap(hallmarkBytes); buffer.order(ByteOrder.LITTLE_ENDIAN); byte[] publicKey = new byte[32]; buffer.get(publicKey); int hostLength = buffer.getShort(); byte[] hostBytes = new byte[hostLength]; buffer.get(hostBytes); String host = new String(hostBytes, "UTF-8"); if (host.length() > 100 || !host.equals(realHost)) { return false; } int weight = buffer.getInt(); if (weight <= 0 || weight > 1000000000) { return false; } int date = buffer.getInt(); buffer.get(); byte[] signature = new byte[64]; buffer.get(signature); byte[] data = new byte[hallmarkBytes.length - 64]; System.arraycopy(hallmarkBytes, 0, data, 0, data.length); if (Crypto.verify(signature, data, publicKey)) { this.hallmark = hallmark; long accountId = Account.getId(publicKey); Account account = accounts.get(accountId); if (account == null) { return false; } LinkedList<Peer> groupedPeers = new LinkedList<>(); int validDate = 0; synchronized (peers) { this.accountId = accountId; this.weight = weight; this.date = date; for (Peer peer : peers.values()) { if (peer.accountId == accountId) { groupedPeers.add(peer); if (peer.date > validDate) { validDate = peer.date; } } } long totalWeight = 0; for (Peer peer : groupedPeers) { if (peer.date == validDate) { totalWeight += peer.weight; } else { peer.adjustedWeight = 0; peer.updateWeight(); } } for (Peer peer : groupedPeers) { peer.adjustedWeight = 1000000000L * peer.weight / totalWeight; peer.updateWeight(); } } return true; } } catch (Exception e) { } return false; }
|
|
|
|
klee
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
December 25, 2013, 05:26:39 PM |
|
|
|
|
|
davethetrousers
|
|
December 25, 2013, 05:27:05 PM |
|
Good news on NXT on RaspPi:
The server is running quite smoothly on the Oracle SE Embedded JRE. Startup time is down to less than 1 minute (vs. >7min on openJDK7), shutting down takes close to half a minute now. The web client is responsive and fast, unlocking an address takes 1-2 seconds, though.
I used conservative settings, imho. This is what I ran, and what was output:
pi@raspberrypi ~/nxt $ ../ejre1.7.0_45/bin/java -Xms320m -Xmx450m -jar start.jar 2013-12-25 16:48:58.450:INFO:oejs.Server:main: jetty-9.1.0.v20131115 2013-12-25 16:48:58.789:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/home/pi/nxt/webapps/] at interval 0 [2013-12-25 16:49:01.485] Nxt 0.4.7e started. [2013-12-25 16:49:01.496] "blockchainStoragePath" = "blockchain.nrs" [2013-12-25 16:49:01.563] "myScheme" = "http" [2013-12-25 16:49:01.566] "myPort" = "57874" [2013-12-25 16:49:01.571] "myAddress" = "" [2013-12-25 16:49:01.575] "shareMyAddress" = "true" [2013-12-25 16:49:01.580] "myHallmark" = "" [2013-12-25 16:49:01.584] "wellKnownPeers" = "109.230.224.65; 78.46.63.221; 95.85.22.142" [2013-12-25 16:49:01.608] "maxNumberOfConnectedPublicPeers" = "5" [2013-12-25 16:49:01.612] "connectTimeout" = "2000" [2013-12-25 16:49:01.616] "readTimeout" = "5000" [2013-12-25 16:49:01.620] "enableHallmarkProtection" = "true" [2013-12-25 16:49:01.624] "pushThreshold" = "0" [2013-12-25 16:49:01.628] "pullThreshold" = "0" [2013-12-25 16:49:01.632] "allowedUserHosts" = "192.168.1.23; 127.0.0.1; localhost; 0:0:0:0:0:0:0:1;" [2013-12-25 16:49:01.637] "allowedBotHosts" = "192.168.1.23; 127.0.0.1; localhost; 0:0:0:0:0:0:0:1;" [2013-12-25 16:49:01.641] "blacklistingPeriod" = "300000" [2013-12-25 16:49:01.645] "communicationLoggingMask" = "0" [2013-12-25 16:49:01.651] Loading transactions... [2013-12-25 16:49:16.831] ...Done [2013-12-25 16:49:16.835] Loading blocks... [2013-12-25 16:49:34.681] ...Done [2013-12-25 16:49:34.692] Scanning blockchain... [2013-12-25 16:49:53.493] ...Done 2013-12-25 16:49:53.828:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@4bbf80{/,file:/home/pi/nxt/webapps/root/,AVAILABLE}{/root} 2013-12-25 16:49:54.050:INFO:oejs.ServerConnector:main: Started ServerConnector@a5bce1{HTTP/1.1}{0.0.0.0:7874} 2013-12-25 16:49:56.921:INFO:oejs.ServerConnector:main: Started ServerConnector@664140{SSL-http/1.1}{0.0.0.0:7875} --- here I sent SIGINT (Ctrl+C) to shut down the server --- 2013-12-25 17:01:37.402:INFO:oejs.ServerConnector:Thread-0: Stopped ServerConnector@a5bce1{HTTP/1.1}{0.0.0.0:7874} 2013-12-25 17:01:37.411:INFO:oejs.ServerConnector:Thread-0: Stopped ServerConnector@664140{SSL-http/1.1}{0.0.0.0:7875} [2013-12-25 17:02:13.742] Nxt stopped. 2013-12-25 17:02:13.780:INFO:oejsh.ContextHandler:Thread-0: Stopped o.e.j.w.WebAppContext@4bbf80{/,file:/home/pi/nxt/webapps/root/,UNAVAILABLE}{/root}
I also set the DDoS protection to somewhat more aggressive settings (10 Req/s, 2s delay).
CPU and RAM usage are more modest than I had expected. The worst case CPU load while idle and synchronized - with the web client open and account unlocked - was 15-20%. Without the client open( still unlocked) it was less than 10% most of the time. There have been some peaks of full load from time to time, probably due to new blocks. RAM usage, which I saw as most critical, is not too bad either. I ran with 320M initial, which is way more than I even need. The mem area is only a third utilized. Are the SE Embedded data structures that much less space complex? Probably, that is a factor.
Running something else on the Pi while running the server should not be much of a problem. While I was testing, I cut back everything as much as possible (GPU RAM share, CLI only), but I think those modest utilization figures leave enough headroom for a GUI. If not, one can always use swap to mitigate.
Next thing I will do is making a ready-to-run-package for Pi users that they can put on their box.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 25, 2013, 05:27:25 PM |
|
my 3 public nodes are updated and working on 0.4.7e
CfB did you fix the last night problem with the "fake" transactions?
What do u mean "fake"?
|
|
|
|
laowai80
Member
Offline
Activity: 98
Merit: 10
|
|
December 25, 2013, 05:27:50 PM |
|
Downloaded 0.4.7e to my home PC, installed from scratch, no blockchain. Both of well known peers are in Blacklisted peers, stuck at genesis block
|
|
|
|
davethetrousers
|
|
December 25, 2013, 05:29:18 PM |
|
Downloaded 0.4.7e to my home PC, installed from scratch, no blockchain. Both of well known peers are in Blacklisted peers, stuck at genesis block You can use my node 109.230.224.65, it is up to date and high-speed.
|
|
|
|
laowai80
Member
Offline
Activity: 98
Merit: 10
|
|
December 25, 2013, 05:30:01 PM |
|
Downloaded 0.4.7e to my home PC, installed from scratch, no blockchain. Both of well known peers are in Blacklisted peers, stuck at genesis block You can use my node 109.230.224.65, it is up to date and high-speed. No, I have my own nodes to sync. I mean, if a new user downloads and installs it, they can't sync anything with default config.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 25, 2013, 05:32:47 PM |
|
Good news on NXT on RaspPi:
The server is running quite smoothly on the Oracle SE Embedded JRE. Startup time is down to less than 1 minute (vs. >7min on openJDK7), shutting down takes close to half a minute now. The web client is responsive and fast, unlocking an address takes 1-2 seconds, though.
I used conservative settings, imho. This is what I ran, and what was output:
pi@raspberrypi ~/nxt $ ../ejre1.7.0_45/bin/java -Xms320m -Xmx450m -jar start.jar 2013-12-25 16:48:58.450:INFO:oejs.Server:main: jetty-9.1.0.v20131115 2013-12-25 16:48:58.789:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/home/pi/nxt/webapps/] at interval 0 [2013-12-25 16:49:01.485] Nxt 0.4.7e started. [2013-12-25 16:49:01.496] "blockchainStoragePath" = "blockchain.nrs" [2013-12-25 16:49:01.563] "myScheme" = "http" [2013-12-25 16:49:01.566] "myPort" = "57874" [2013-12-25 16:49:01.571] "myAddress" = "" [2013-12-25 16:49:01.575] "shareMyAddress" = "true" [2013-12-25 16:49:01.580] "myHallmark" = "" [2013-12-25 16:49:01.584] "wellKnownPeers" = "109.230.224.65; 78.46.63.221; 95.85.22.142" [2013-12-25 16:49:01.608] "maxNumberOfConnectedPublicPeers" = "5" [2013-12-25 16:49:01.612] "connectTimeout" = "2000" [2013-12-25 16:49:01.616] "readTimeout" = "5000" [2013-12-25 16:49:01.620] "enableHallmarkProtection" = "true" [2013-12-25 16:49:01.624] "pushThreshold" = "0" [2013-12-25 16:49:01.628] "pullThreshold" = "0" [2013-12-25 16:49:01.632] "allowedUserHosts" = "192.168.1.23; 127.0.0.1; localhost; 0:0:0:0:0:0:0:1;" [2013-12-25 16:49:01.637] "allowedBotHosts" = "192.168.1.23; 127.0.0.1; localhost; 0:0:0:0:0:0:0:1;" [2013-12-25 16:49:01.641] "blacklistingPeriod" = "300000" [2013-12-25 16:49:01.645] "communicationLoggingMask" = "0" [2013-12-25 16:49:01.651] Loading transactions... [2013-12-25 16:49:16.831] ...Done [2013-12-25 16:49:16.835] Loading blocks... [2013-12-25 16:49:34.681] ...Done [2013-12-25 16:49:34.692] Scanning blockchain... [2013-12-25 16:49:53.493] ...Done 2013-12-25 16:49:53.828:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@4bbf80{/,file:/home/pi/nxt/webapps/root/,AVAILABLE}{/root} 2013-12-25 16:49:54.050:INFO:oejs.ServerConnector:main: Started ServerConnector@a5bce1{HTTP/1.1}{0.0.0.0:7874} 2013-12-25 16:49:56.921:INFO:oejs.ServerConnector:main: Started ServerConnector@664140{SSL-http/1.1}{0.0.0.0:7875} --- here I sent SIGINT (Ctrl+C) to shut down the server --- 2013-12-25 17:01:37.402:INFO:oejs.ServerConnector:Thread-0: Stopped ServerConnector@a5bce1{HTTP/1.1}{0.0.0.0:7874} 2013-12-25 17:01:37.411:INFO:oejs.ServerConnector:Thread-0: Stopped ServerConnector@664140{SSL-http/1.1}{0.0.0.0:7875} [2013-12-25 17:02:13.742] Nxt stopped. 2013-12-25 17:02:13.780:INFO:oejsh.ContextHandler:Thread-0: Stopped o.e.j.w.WebAppContext@4bbf80{/,file:/home/pi/nxt/webapps/root/,UNAVAILABLE}{/root}
I also set the DDoS protection to somewhat more aggressive settings (10 Req/s, 2s delay).
CPU and RAM usage are more modest than I had expected. The worst case CPU load while idle and synchronized - with the web client open and account unlocked - was 15-20%. Without the client open( still unlocked) it was less than 10% most of the time. There have been some peaks of full load from time to time, probably due to new blocks. RAM usage, which I saw as most critical, is not too bad either. I ran with 320M initial, which is way more than I even need. The mem area is only a third utilized. Are the SE Embedded data structures that much less space complex? Probably, that is a factor.
Next thing I will do is making a ready-to-run-package for Pi users that they can put on their box.
That's great! Where could I buy a few thousands of these raspberries? For NXT or USD (not sure how long USD will be accepted so I prefer to get rid of dollars in the 1st place).
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 25, 2013, 05:34:11 PM |
|
Don't know much about coding... but doesn't this mean that whenever a Hallmark assignment is verified it will replace previous one?
Yes. This is how it's supposed to work.
|
|
|
|
ZeroTheGreat
|
|
December 25, 2013, 05:34:33 PM |
|
Good news on NXT on RaspPi:
Next thing I will do is making a ready-to-run-package for Pi users that they can put on their box.
AWESOME! We'll need some mediacontent: NXT forger with RasPi vs Bitcoin miner with buzzing and hot farm-house
|
|
|
|
bitcoinpaul
|
|
December 25, 2013, 05:34:49 PM |
|
Next thing I will do is making a ready-to-run-package for Pi users that they can put on their box.
I smell revolution, guys! We need to market this...
|
|
|
|
klee
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
December 25, 2013, 05:35:47 PM |
|
11: java.util.ConcurrentModificationException BTW I have a raps gathering dust atm
|
|
|
|
Ola
|
|
December 25, 2013, 05:36:15 PM |
|
I wrote a new post at raspberrypi.org hopefully it gets approved. We need pouncer to get involved in this. Here is the post: "Hi there, I am ola. I am working with several members of the nxt community to bootstrap a new decentralized, built from the bottom up, 100% proof of stake crypto currency called NXT, Pronounced 'Next'. The Nxt community needs the help of this community badly :cry: . We are currently in the alpha stage testing the decentralized network and we are getting ddosed constantly...This problem will go away if we had several thousand nxt nodes set up on several computers. Your rasberrypi devices can help us accomplish just that 8-) . We are also not looking for a handout..We have a donation fund of ~460,000 nxt to reward those who help us by installing next node through our launch date Jan 3 2014 to Help bootstrap the network. The fund is currently worth about ~$22,000 after only 3 weeks. It is expected that after a little while past the the launch date, the fund would most likely be worth several million dollars. and with some of these funds distributed to those of you who decide to help out, who knows you might find yourself with several thousand of dollars in extra cash . Of course nothing is certain. But every evidence indicates this will be the case. Nxt Is only been in alpha for 3 weeks and already it is close to competing with the top crypto currencies like bitcoin see here, 5th on the map: http://coinmarketcap.com/Here is some nxt money from the fund:https://docs.google.com/spreadsheet/ccc?key=0AgAGADgnQcrtdHRrV3V3Z1lzOXVEMWtqdElUaEtqV1E#gid=5It is expected that nxt would eventually overtake bitcoin due to the extensive list of features it will be launching with, its superiority in transaction processing speed and eco-friendly forging process ("mining"). Take a look below to gain some insight: Detailed feature sets: - Decentralized DNS / Alias System (Starting at block 22000) ( this is already in effect and it raised the NXT market cap to > $20 million) - Transparent Mining (Partially starting at block 25000) IN A COUPLE OF DAYS ! - Decentralized Asset Exchange / Colored Coins (Starting after block 30000) Jan 3 2014 This also allows gateways to issue other currencies (fiat or crypto) on the Nxt network. - Decentralized Marketplace / Auction - Decentralized Mixing Service - Encrypted Messaging / Chat - DDoS Protection - Project Kharon (in development) - Voting As you can see, its an impressive list of features for a currency / protocol to be launching with and there is much talk about nxt in several prominent crypto currency circles. If you would like to take the plunge to help out and be rewarded for your efforts, A guide has been written to help you accomplish this. See below: Guide to installing nxt on raspberrypihttps://nextcoin.org/index.php/topic,1277.msg10730/topicseen.html#msg10730If you don't know what these feature sets mean, what you need to know is that the world you used to know will no longer be the same in ~1 to 2 years...Spend 30 mins to browse the resources below to understand this world changing innovation Detailed nxt overviewhttp://nxtcrypto.wikia.com/wiki/Nxt_Wikihttp://nxtcrypto.wikia.com/wiki/FAQhttp://en.wikipedia.org/wiki/NxtVideoshttp://www.youtube.com/watch?v=7oAiCOWLtn4 nxt intro http://www.youtube.com/watch?v=f8dLMoZLMzM nxt intro http://www.youtube.com/watch?v=w1FTzBjy_8Q how forging works If you manage to get your accounts up, respond with you nxt account addresses and you will be rewarded by several of the moderators coming to this forum post from the nxt community. Thank you guys. "
|
Nxter,Bitcoiner,Ether highlevel developer working to improve the world.
|
|
|
|
klee
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
December 25, 2013, 05:42:20 PM |
|
11: java.util.ConcurrentModificationException BTW I have a raps gathering dust atm You lucky little... I have bought it for Bitcoin offline wallet lmao!
|
|
|
|
starik69
Legendary
Offline
Activity: 1367
Merit: 1000
|
|
December 25, 2013, 05:42:33 PM |
|
Don't know much about coding... but doesn't this mean that whenever a Hallmark assignment is verified it will replace previous one?
Yes. This is how it's supposed to work. I made third hallmark with today date and all three are
|
|
|
|
PGPpfKkx
|
|
December 25, 2013, 05:43:06 PM |
|
ive sent a bunch of aliases and after their deadline nothing comes up they are not registered to me or to anyone.
when will be a good time to check again and then if not try to register them again? tomorrow?
will i receive my funds back from the requests that were somehow lost in limbo?
thanks
|
|
|
|
subhead
Member
Offline
Activity: 75
Merit: 10
|
|
December 25, 2013, 05:45:49 PM |
|
Downloaded 0.4.7e to my home PC, installed from scratch, no blockchain. Both of well known peers are in Blacklisted peers, stuck at genesis block You can use my node 109.230.224.65, it is up to date and high-speed. i did this, restarted nxt and your node is also on the blacklisted list now containing three nodes and still stuck on genesis block.
|
|
|
|
brooklynbtc
Sr. Member
Offline
Activity: 336
Merit: 250
AKA jefdiesel
|
|
December 25, 2013, 05:48:55 PM |
|
todays experiment,
set up a 8gb VPS at digital ocean
lets see how it fares
162.243.214.18
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 25, 2013, 05:49:47 PM |
|
ive sent a bunch of aliases and after their deadline nothing comes up they are not registered to me or to anyone.
when will be a good time to check again and then if not try to register them again? tomorrow?
will i receive my funds back from the requests that were somehow lost in limbo?
thanks
U did receive ur funds back. Next time send AS transaction with 24h deadline, squatting is over. U can do it now.
|
|
|
|
|