Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt 1.11.13 - NEW RELEASE: Ardor 2.0.14 - The Ardor genesis block happened at 0:00 January 1st

Pages: [1] 2  All

Author Topic: NRS v1.6.0e  (Read 10854 times)

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1610
    • View Profile
  • Karma: +816/-81
NRS v1.6.0e
September 11, 2015, 01:04:08 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Release 1.6.0e

https://bitbucket.org/JeanLucPicard/nxt/downloads/nxt-client-1.6.0e.zip

sha256:

e0a3eaca084fbe89cad5890ac9cb94a2e0c06bef5fe065c84702ff53e643aa4d  nxt-client-1.6.0e.zip

https://bitbucket.org/JeanLucPicard/nxt/downloads/nxt-client-1.6.0e.jar

sha256:

49281f76b855e218e4f69a60f8cba6aaa5c0deeb382615196f6f728e958a01e7  nxt-client-1.6.0e.jar

https://bitbucket.org/JeanLucPicard/nxt/downloads/nxt-client-1.6.0e.exe

The exe and jar packages must have a digital signature by "Stichting NXT".


This is an experimental release for testing only. Source code is not provided.


Change log:

This experimental release adds several major new features. It does not require
a hard fork, and update to the 1.6 branch will be completely optional even
after it is declared stable. 1.6 peers are compatible with 1.5 peers, but as
usual the database changes are not reversible, going back from 1.6 to 1.5
would require starting again from a 1.5 database.


Account ledger:

The account ledger feature provides a record of all recent changes to the
account balances (including NXT, asset, and currency balances), and the event
that caused each change. It is enabled by default for all account, but can be
set to track certain accounts only or be disabled completely, using the
nxt.ledgerAccounts property. By default records are kept for the last 30,000
blocks, this can be changed using the nxt.ledgerTrimKeep property.
The nxt.ledgerLogUnconfirmed property controls whether confirmed, unconfirmed,
or both types of changes are tracked.

The new APIs getAccountLedger and getAccountLedgerEntry are used to retrieve
account ledger records. Their parameters and response fields are documented in
the javadoc.

Account ledger events can also be followed using the existing eventRegister
and eventWait API.

Using account ledger events as an alternative to the getAccountTransactions or
getBlockchainTransactions API completely avoids the need to handle phased
transactions as a special case. Only changes to account balances that actually
happened, and at the time (block height) they happened, are recorded in the
account ledger. The account ledger also makes it easier to monitor an account
for changes that occurred as a result of past transactions (e.g. an AE order
being filled), or are result of dividend payment transactions, or block
forging fees.


Peer services:

Peers can advertise to other peers the set of services they provide, and
include this information when sharing peer addresses with each other. Currently
available services are Hallmark (being a hallmarked peer), and Prunable
(providing archival and retrieval service for expired prunable data).

To configure a peer to provide the Prunable service, nxt.maxPrunableLifetime
must be set to -1 and nxt.includeExpiredPrunable must be true (default). Such
a peer will then provide expired prunable data to other peers when requested.
If nxt.includeExpiredPrunable is false, the node will still keep prunable data
indefinitely (if nxt.maxPrunableLifetime is -1), but will not provide them to
others.

The services a peer provides are also exposed in the getBlockchainStatus and
getStatus APIs. The getPeers API accepts optional service parameter, to
filter the result based on desired provided service, and includes the services
each peer provides in the peer info.


Restore prunable data:

A peer configured with nxt.maxPrunableLifetime=-1, or any positive value
higher than the minimum of two weeks (1209600 seconds), when downloading the
blockchain from scratch, will automatically start requesting the missing
prunable parts (prunable plain/encrypted messages, and tagged data) from any
archival peers it finds on the network (those providing the Prunable service).

This task of requesting and restoring missing prunable data can also be
triggered using the new retrievePrunedDat debug API, for peers that already
have the full blockchain or need to be restarted during the download process.

(Note that when nxt.maxPrunableLifetime is set to a positive value, extend
tagged data transactions are ignored for the purpose of selecting which
pruned tagged data to retrieve, the timestamp on the original upload data
transaction is what is being used. To make sure all pruned data are retrieved,
set nxt.maxPrunableLifetime to -1, and if really needed set it back to the
desired value after the initial restore is complete.)

The getBlockchainTransactions API now accepts optional includeExpiredPrunable
parameter, to force including expired prunable parts in the response, if
available (default false).


Asset delete:

Asset transfers to the Genesis accounts are now treated as deleting the
corresponding number of shares, with the total asset quantity adjusted
accordingly. A new deleteAssetShares API has been added to perform this
function. At the next hard fork (1.7), asset transfers to Genesis will be
completely disallowed and the deleteAssetShares API will then create a new
AssetDelete transaction type, to achieve the same quantity reduction effect.


API additions:

A new getTaggedDataExtendTransactions API has been added, to retrieve all
tagged data extend transactions for a given tagged data upload transaction.

The getConstants API now also returns a list of all supported request types
and their properties.

The approveTransaction API accepts revealedSecretIsText boolean parameter,
default false, as a way of specifying whether revealedSecret is text or
binary. The old revealedSecretText parameter to submit the text value
directly is still supported.

Added encodeQRCode and decodeQRCode APIs, to handle the encoding and decoding
of QR image on the server side, instead of in javascript, using the ZXing java
QR processing library, version 3.2.1. This improves the generation and parsing
of QR codes used in offline transaction processing, images that failed to
decode correctly using javascript can now successfully be processed.

Allow attaching encrypted messages to accounts that don't yet have a public
key announced, as long as the public key is included in the same transaction
as a public key announcement attachment.


Several performance optimizations have been included in this release:

The last 10 blocks and the transactions in them are now cached in memory.
The unconfirmed transactions (up to nxt.maxUnconfirmedTransactions, default
2000) are also cached in memory.

Accounts with zero balance are now deleted from the account table, which
significantly reduces its size and should make queries for the balances of the
active accounts faster. Only public keys for such accounts, if available, are
permanently stored in the separate public_key table. Creation of new accounts
for one-time use, which is the practice of many exchanges and merchants,
should now be less of a burden for the database, as long as such accounts are
fully emptied after use.


Updated jetty to version 9.3.2. If unpacking on top of a previous installation,
delete the old lib subdirectory first.

This release will perform a database upgrade and rescan on first start.


-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJV8sIcAAoJENqvaxkWiP4ZvZQP/iWOYYj2PjqPp1OjtQt/nxbe
7sAUJBhISvc+NBSGCly53W34t/+QsPhE0eOoY9EZ6vvKqsvAXdDUFYdMKHbX2FZx
gni32IxFMmDb64HlaG07GFSWvXAPwA/+lJCeWwBVwnkF9HvLJaTpdmG4+u9howsb
OFeE6IAvHYAdEJLDpB27Fm3knQkTS4e0j3RJUtHt9DmREq0O+x4TByK1RnwAjQs2
NciTpIbKAN3T7OKzonES+5rQtXnp5pLulA7jw3QyfXTpIRu3DgKFXKobZbI8zHvK
2e2zGsrA7F267d6xYsPL1TjtqSKldxjuX0RP2zAd28yS0SNAll2Zq+4qFM4dPOBw
3jcbb3ecMySeJ7KI9SJxeq2PWA1ogLfs7/NvCAwLmgs7cPAmLgHE3LP/6HeL6ox2
Z/d/t+NvPHyTPh5DLXQ9q9rJNFKCWAd5NTmSyd4KZVbhm7/mVpWJwnH6CacE+8bX
4FDaA1uQh+4FVbzvBldlNGj7Q/mziNvz36cg0B3Dn/Bfgx04Bp3OPDhh+I/uU/Hw
i+d3lr73UZlYNHkwMdtkFNnJ/mITBe02SRwpo07UvCWPYCSso5OacNC2n9rHnCOc
Aqqy894h7WtNg60cFM4fBBC44UzMpECFIvOwCtOWEhzS8ES8S6Ly3nzYkp3RMOoq
NCZgq03lVoyf7Kkk7GPO
=7ack
-----END PGP SIGNATURE-----
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

qq2536007339

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 503
    • View Profile
  • Karma: +41/-9
Re: NRS v1.6.0e
September 11, 2015, 01:09:06 pm

I know you will release very soon,my NRS told me there is a New Beta coming.Once again,thanks all Core dev for your great work.
« Last Edit: September 11, 2015, 01:15:21 pm by qq2536007339 »
你送我未来币,我是要的。NXT-DJ68-PG7W-4JEU-2LU5T

slothbag

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 454
    • View Profile
  • Karma: +74/-4
Re: NRS v1.6.0e
September 11, 2015, 01:46:43 pm

Nice!

rtrtcrypto

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 279
    • View Profile
  • Karma: +37/-5
Re: NRS v1.6.0e
September 11, 2015, 01:49:19 pm

Amazing work guys. The believers appreciate it very much!!! Thanks for all the hours on this!!!

Sebastien256

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2814
  • ^LOOK UP^ = Nxt community!
    • View Profile
  • Karma: +169/-24
Re: NRS v1.6.0e
September 11, 2015, 02:35:27 pm

Nice to see that the Nxt devs team is always working hard.  :)
Keep the update coming!  :-*
Please drop your ideas concerning Nxt and/or NRS in this topic -> List of feature request for Nxt and/or NRS (with the full list in OP).

yassin54

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2505
  • I am Homer, Sorry my english is Bad!!
    • View Profile
  • Karma: +240/-14
Re: NRS v1.6.0e
September 11, 2015, 02:43:59 pm

Thanks!  ;D

kushti

  • Core Dev
  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 384
  • Nxt Core & Apps Dev
    • View Profile
  • Karma: +184/-5
Re: NRS v1.6.0e
September 11, 2015, 02:45:04 pm

Is it possible (or planned) to make peer services pluggable? To make offchain+onchain protocols easier stuff.
for donations / messages: NXT-PKXM-WH25-UXXG-CJAVD (alias: kushti)

ScripterRon

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 522
    • View Profile
  • Karma: +75/-2
Re: NRS v1.6.0e
September 11, 2015, 02:45:54 pm

A reminder that a full database scan will be done when updating to 1.6.  This can take awhile to complete - you can check the progress of the scan by looking at nxt.log.  It is a good idea to run the compact script after a database scan in order to reorganize the database tables and indexes (be sure to stop NRS before compacting the database).

Sebastien256

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2814
  • ^LOOK UP^ = Nxt community!
    • View Profile
  • Karma: +169/-24
Re: NRS v1.6.0e
September 11, 2015, 03:03:51 pm

Report.
When I clicked on the asset in the asset exchange tab, I have a gui message "Invalid asset."
This seems to be only a GUI bug as everyting look fine on the surface, except this message poping up from time to time...
I did not have this problematic on previous version.
Please drop your ideas concerning Nxt and/or NRS in this topic -> List of feature request for Nxt and/or NRS (with the full list in OP).

bidji29

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 250
    • View Profile
  • Karma: +53/-11
Re: NRS v1.6.0e
September 11, 2015, 04:14:51 pm

Thanks Jean-luc (and other core dev team) . You are the most valuable assets of the NXT community. We are lucky to have you with us.

msin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1288
    • View Profile
  • Karma: +138/-18
Re: NRS v1.6.0e
September 11, 2015, 04:21:53 pm

Nice, thanks JL

Ludom

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1734
    • View Profile
    • Plaisir & Valeur d'histoire
  • Karma: +197/-15
Re: NRS v1.6.0e
September 11, 2015, 04:29:14 pm

Great job !!! Thanks !
Support us to publish "The first book about Nxt"

EvilDave

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1790
    • View Profile
    • NXT Foundation
  • Karma: +341/-40
Re: NRS v1.6.0e
September 11, 2015, 04:58:19 pm

Damn, guys, you've been busy. Nice one.....
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

Sebastien256

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2814
  • ^LOOK UP^ = Nxt community!
    • View Profile
  • Karma: +169/-24
Re: NRS v1.6.0e
September 11, 2015, 05:40:31 pm

I just took a look at the account ledger and this new option is really cool. I like it.  :)
Please drop your ideas concerning Nxt and/or NRS in this topic -> List of feature request for Nxt and/or NRS (with the full list in OP).

sadface

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 273
    • View Profile
  • Karma: +16/-2
Re: NRS v1.6.0e
September 11, 2015, 06:00:24 pm

cool

qq2536007339

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 503
    • View Profile
  • Karma: +41/-9
Re: NRS v1.6.0e
September 11, 2015, 11:09:36 pm

Can't run after update in my ubuntu 14.04.Luckly I didn't delete NRS 1.5.15.

Code: [Select]
2015-09-12 07:05:40 FINE: Mapped port [110.204.106.141]:7874
Exception in thread "Thread-4" java.lang.NoSuchMethodError: org.eclipse.jetty.util.StringUtil.csvSplit(Ljava/lang/String;)[Ljava/lang/String;
at org.eclipse.jetty.servlets.DoSFilter.setWhitelist(DoSFilter.java:1047)
at org.eclipse.jetty.servlets.DoSFilter.init(DoSFilter.java:248)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:346)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at nxt.peer.v.a(Unknown Source)
at nxt.util.v$2.run(Unknown Source)
2015-09-12 07:05:40 SEVERE: Errors running startup tasks:
org.eclipse.jetty.util.StringUtil.csvSplit(Ljava/lang/String;)[Ljava/lang/String;

java.lang.RuntimeException: Errors running startup tasks:
org.eclipse.jetty.util.StringUtil.csvSplit(Ljava/lang/String;)[Ljava/lang/String;

at nxt.util.v.c(Unknown Source)
at nxt.util.v.a(Unknown Source)
at nxt.eh.<clinit>(Unknown Source)
at nxt.Nxt.e(Unknown Source)
at nxt.Nxt.main(Unknown Source)
2015-09-12 07:05:40 INFO: Shutting down...
2015-09-12 07:05:40 FINE: Mapping deleted for port 7874
2015-09-12 07:05:40 INFO: shutting down sendingService
2015-09-12 07:05:40 INFO: shutting down peersService
2015-09-12 07:05:45 INFO: some threads in peersService didn't terminate, forcing shutdown
2015-09-12 07:05:45 INFO: Database shutdown completed
2015-09-12 07:05:45 INFO: Nxt server 1.6.0e stopped.
« Last Edit: September 11, 2015, 11:14:27 pm by qq2536007339 »
你送我未来币,我是要的。NXT-DJ68-PG7W-4JEU-2LU5T

ScripterRon

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 522
    • View Profile
  • Karma: +75/-2
Re: NRS v1.6.0e
September 12, 2015, 12:58:17 am

Can't run after update in my ubuntu 14.04.Luckly I didn't delete NRS 1.5.15.

Code: [Select]
2015-09-12 07:05:40 FINE: Mapped port [110.204.106.141]:7874
Exception in thread "Thread-4" java.lang.NoSuchMethodError: org.eclipse.jetty.util.StringUtil.csvSplit(Ljava/lang/String;)[Ljava/lang/String;
at org.eclipse.jetty.servlets.DoSFilter.setWhitelist(DoSFilter.java:1047)
at org.eclipse.jetty.servlets.DoSFilter.init(DoSFilter.java:248)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:346)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at nxt.peer.v.a(Unknown Source)
at nxt.util.v$2.run(Unknown Source)
2015-09-12 07:05:40 SEVERE: Errors running startup tasks:
org.eclipse.jetty.util.StringUtil.csvSplit(Ljava/lang/String;)[Ljava/lang/String;

java.lang.RuntimeException: Errors running startup tasks:
org.eclipse.jetty.util.StringUtil.csvSplit(Ljava/lang/String;)[Ljava/lang/String;

at nxt.util.v.c(Unknown Source)
at nxt.util.v.a(Unknown Source)
at nxt.eh.<clinit>(Unknown Source)
at nxt.Nxt.e(Unknown Source)
at nxt.Nxt.main(Unknown Source)
2015-09-12 07:05:40 INFO: Shutting down...
2015-09-12 07:05:40 FINE: Mapping deleted for port 7874
2015-09-12 07:05:40 INFO: shutting down sendingService
2015-09-12 07:05:40 INFO: shutting down peersService
2015-09-12 07:05:45 INFO: some threads in peersService didn't terminate, forcing shutdown
2015-09-12 07:05:45 INFO: Database shutdown completed
2015-09-12 07:05:45 INFO: Nxt server 1.6.0e stopped.
Did you delete the 'lib' directory before installing 1.6?  Actually, you should delete both 'lib' and 'html' directories before installing a new release.  Otherwise, you can end up with obsolete files from the previous release which cause errors.  In your case, it sounds like the old Jetty files are being used instead of the new ones.

qq2536007339

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 503
    • View Profile
  • Karma: +41/-9
Re: NRS v1.6.0e
September 12, 2015, 01:53:13 am

Did you delete the 'lib' directory before installing 1.6?  Actually, you should delete both 'lib' and 'html' directories before installing a new release.  Otherwise, you can end up with obsolete files from the previous release which cause errors.  In your case, it sounds like the old Jetty files are being used instead of the new ones.

Thank you,you are right,now everything looks ok.
你送我未来币,我是要的。NXT-DJ68-PG7W-4JEU-2LU5T

verymuchso

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
  • Karma: +118/-2
Re: NRS v1.6.0e
September 12, 2015, 08:59:38 am

Is it possible (or planned) to make peer services pluggable? To make offchain+onchain protocols easier stuff.

I'd like to know this too.

Adding services to peers is possible for sure, the FIMK Gossip protocol (free, real-time, decentralized, bi-directional) is living proof of this.  But to bring this to NXT one needs to fork and re-compile, it sure would be perfect if this could somehow be made pluggable (i do have some ideas in that direction).
« Last Edit: September 12, 2015, 09:06:23 am by verymuchso »
HEAT: DEX | SDK | HOME

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1610
    • View Profile
  • Karma: +816/-81
Re: NRS v1.6.0e
September 12, 2015, 09:18:13 am

Is it possible (or planned) to make peer services pluggable? To make offchain+onchain protocols easier stuff.
Currently a limitation is that the services are stored and exchanged between peers as just a bitmap, stored in an unsigned long. If you want to allow for third party server-side plugins to provide arbitrary services, need a more flexible way to assign and advertise service IDs, without the core developers having to assign and hardcode a new bit for each such plugin. And we would need a framework for adding server-side plugins, where to add a new service the end user will only need to add a jar file in the classpath, and an entry in nxt.properties.
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322
Pages: [1] 2  All