elective-stereophonic
elective-stereophonic
Upcoming features in 1.8 release
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.11.15 | Latest Experimental Nxt Client: Nxt 1.12.0e

Pages: 1 [2]  All

Author Topic: Upcoming features in 1.8 release  (Read 7289 times)

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #20 on: March 17, 2016, 09:49:52 am »

The account monitor has a funding account and one or more monitored accounts.  You can monitor Nxt, Asset or Currency.  When a monitored account balance becomes less than the threshold amount, a transfer transaction is initiated to transfer Nxt/Asset/Currency from the funding account to the monitored account.

Multiple account monitors can be active.  Monitored accounts are identified by an account property.  The account property must be set by the funding account owner.
- amazing!  Translated and shared here: https://bitcointalk.org/index.php?topic=345882.msg14225089#msg14225089
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

HCLivess

  • Hero Member
  • *****
  • Karma: +121/-47
  • Offline Offline
  • Posts: 521
  • Hardcore Gaming CEO
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #21 on: March 17, 2016, 10:13:32 am »

I suggest we make forging operations simpler
for example, when I start forging on my nxt node using a browser from another pc, it stops working the moment i close the browser... yet it is possible to do, although it serves no purpose
Logged
Producing, Lending, Mining, Trading, Forging, Staking

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +439/-42
  • Offline Offline
  • Posts: 1795
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #22 on: March 17, 2016, 10:25:36 am »

The account monitor has a funding account and one or more monitored accounts.  You can monitor Nxt, Asset or Currency.  When a monitored account balance becomes less than the threshold amount, a transfer transaction is initiated to transfer Nxt/Asset/Currency from the funding account to the monitored account.
Are there safeguards to prevent abuse, or do you assume the monitored account is owned by the same person as the funding account?
You provide your secret phrase when starting an account monitor (same as when you start forging).  The API are StartAccountMonitor, StopAccountMonitor and GetAccountMonitor.

The idea behind this feature is to allow one account to automatically make sure that other accounts used by his application always poses small amount of NXT so that they can send transactions.
This can be used by businesses to mask the fact that they are using NXT under the hoods from their users.

The business owner specifies:
Funding account
Account property to identify other accounts to be funded
Amount to fund each time
Threshold under which the account has to be funded
Interval between funding transactions

Keeping the interval large enough and the amount to fund small enough should prevent abuse.
However, if there is a persistent problem the funding account can remove the funding property from the abusing funded account and thus stop the funding.
« Last Edit: March 17, 2016, 11:49:00 am by Riker »
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

HCLivess

  • Hero Member
  • *****
  • Karma: +121/-47
  • Offline Offline
  • Posts: 521
  • Hardcore Gaming CEO
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #23 on: March 17, 2016, 10:26:31 am »

Also, this is rather big. Together with the upcoming 2.0 features and very active development, NXT is the biggest thing under the radar.
Logged
Producing, Lending, Mining, Trading, Forging, Staking

durerus

  • Hero Member
  • *****
  • Karma: +106/-8
  • Offline Offline
  • Posts: 527
  • user-owner
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #24 on: March 17, 2016, 01:55:47 pm »

The account monitor has a funding account and one or more monitored accounts.  You can monitor Nxt, Asset or Currency.  When a monitored account balance becomes less than the threshold amount, a transfer transaction is initiated to transfer Nxt/Asset/Currency from the funding account to the monitored account.
Are there safeguards to prevent abuse, or do you assume the monitored account is owned by the same person as the funding account?
You provide your secret phrase when starting an account monitor (same as when you start forging).  The API are StartAccountMonitor, StopAccountMonitor and GetAccountMonitor.

The idea behind this feature is to allow one account to automatically make sure that other accounts used by his application always poses small amount of NXT so that they can send transactions.
This can be used by businesses to mask the fact that they are using NXT under the hoods from their users.

The business owner specifies:
Funding account
Account property to identify other accounts to be funded
Amount to fund each time
Threshold under which the account has to be funded
Interval between funding transactions

Keeping the interval large enough and the amount to fund small enough should prevent abuse.
However, if there is a persistent problem the funding account can remove the funding property from the abusing funded account and thus stop the funding.

Got it! So using the Monetary System for concert cards (as you mentioned that as an example in the video with Marc) without the visitor of the concert having to consciously deal with NXT will be possible. So making this possible should no longer be mentioned as a reason for 2.0, no?
Logged

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +439/-42
  • Offline Offline
  • Posts: 1795
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #25 on: March 17, 2016, 02:23:19 pm »

The account monitor has a funding account and one or more monitored accounts.  You can monitor Nxt, Asset or Currency.  When a monitored account balance becomes less than the threshold amount, a transfer transaction is initiated to transfer Nxt/Asset/Currency from the funding account to the monitored account.
Are there safeguards to prevent abuse, or do you assume the monitored account is owned by the same person as the funding account?
You provide your secret phrase when starting an account monitor (same as when you start forging).  The API are StartAccountMonitor, StopAccountMonitor and GetAccountMonitor.

The idea behind this feature is to allow one account to automatically make sure that other accounts used by his application always poses small amount of NXT so that they can send transactions.
This can be used by businesses to mask the fact that they are using NXT under the hoods from their users.

The business owner specifies:
Funding account
Account property to identify other accounts to be funded
Amount to fund each time
Threshold under which the account has to be funded
Interval between funding transactions

Keeping the interval large enough and the amount to fund small enough should prevent abuse.
However, if there is a persistent problem the funding account can remove the funding property from the abusing funded account and thus stop the funding.

Got it! So using the Monetary System for concert cards (as you mentioned that as an example in the video with Marc) without the visitor of the concert having to consciously deal with NXT will be possible. So making this possible should no longer be mentioned as a reason for 2.0, no?

It's an intermediate solution not suitable for mass usage since you'll need to pay a lot of fees but if you have few dozens accounts that you like to mask from NXT you can use the "Funding Monitor" this way.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

testdruif

  • Full Member
  • ***
  • Karma: +71/-1
  • Offline Offline
  • Posts: 223
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #26 on: March 21, 2016, 09:06:05 pm »

Is the plugin/addon feature already implemented or is it still in it's inital phase?
Logged
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +439/-42
  • Offline Offline
  • Posts: 1795
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #27 on: March 21, 2016, 09:16:06 pm »

Add-ons are already implemented in package nxt.addons and documented in "nxt-client-1.8.0e.changelog.txt", look for "Server-side addOns"
We can use your feedback, if you like to implement the first ever add on.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

testdruif

  • Full Member
  • ***
  • Karma: +71/-1
  • Offline Offline
  • Posts: 223
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #28 on: March 21, 2016, 09:21:07 pm »

Already on it (if I can get intellij to work with 1.8e) :(
I'm going to bring email notification to the masses! ;)
Logged
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

testdruif

  • Full Member
  • ***
  • Karma: +71/-1
  • Offline Offline
  • Posts: 223
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #29 on: March 21, 2016, 10:01:14 pm »

Already on it (if I can get intellij to work with 1.8e) :(
I'm going to bring email notification to the masses! ;)

Any idea why I'm running into problems when compiling?
I have to comment out

// load non-default properties files from the user folder
                    if (!dirProvider.isLoadPropertyFileFromUserDir()) {
                        return properties;
                    }

In order for the code to run.
Error:

Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:264)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Caused by: java.lang.RuntimeException: Using an nxt-default.properties file from a version other than 1.8.0e is not supported!!!
   at nxt.Nxt.<clinit>(Nxt.java:77)
   ... 3 more
Logged
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +439/-42
  • Offline Offline
  • Posts: 1795
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #30 on: March 21, 2016, 10:13:00 pm »

Already on it (if I can get intellij to work with 1.8e) :(
I'm going to bring email notification to the masses! ;)

Any idea why I'm running into problems when compiling?
I have to comment out

// load non-default properties files from the user folder
                    if (!dirProvider.isLoadPropertyFileFromUserDir()) {
                        return properties;
                    }

In order for the code to run.
Error:

Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:264)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Caused by: java.lang.RuntimeException: Using an nxt-default.properties file from a version other than 1.8.0e is not supported!!!
   at nxt.Nxt.<clinit>(Nxt.java:77)
   ... 3 more

Depending on how you launch the server it is loading nxt-default.properties from a previous version, perhaps from "c:\program file\nxt"
You can tell which properties file is loaded from the nxt.log and/or the IntelliJ console window.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

testdruif

  • Full Member
  • ***
  • Karma: +71/-1
  • Offline Offline
  • Posts: 223
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #31 on: March 21, 2016, 10:21:34 pm »

Already on it (if I can get intellij to work with 1.8e) :(
I'm going to bring email notification to the masses! ;)

Any idea why I'm running into problems when compiling?
I have to comment out

// load non-default properties files from the user folder
                    if (!dirProvider.isLoadPropertyFileFromUserDir()) {
                        return properties;
                    }

In order for the code to run.
Error:

Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:264)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Caused by: java.lang.RuntimeException: Using an nxt-default.properties file from a version other than 1.8.0e is not supported!!!
   at nxt.Nxt.<clinit>(Nxt.java:77)
   ... 3 more

Depending on how you launch the server it is loading nxt-default.properties from a previous version, perhaps from "c:\program file\nxt"
You can tell which properties file is loaded from the nxt.log and/or the IntelliJ console window.

I'm running it straight from intelliJ,

Only output I have is

"C:\Program Files\Java\jdk1.8.0_74\bin\java" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_74\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\rt.jar;C:\Users\testd\Downloads\nxt-private-1.8\out\production\nxt-private-1.8;C:\Users\testd\Downloads\nxt-private-1.8\lib\core-3.2.1.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\h2-1.4.191.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\javase-3.2.1.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\weupnp-0.1.4.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\tika-core-1.12.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\slf4j-api-1.7.18.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\json-simple-1.1.1.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\lucene-core-5.3.2.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\tika-parsers-1.12.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\bcprov-jdk15on-154.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\slf4j-jdk14-1.7.18.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\lucene-queries-5.3.2.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\javax.servlet-api-3.1.0.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-io-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\lucene-queryparser-5.3.2.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-http-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-util-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-server-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-servlet-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\lucene-analyzers-common-5.3.2.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\websocket-api-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-security-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-servlets-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\websocket-client-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\websocket-common-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\websocket-server-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\websocket-servlet-9.3.8.v20160314.jar;C:\Users\testd\Downloads\nxt-private-1.8\lib\jetty-continuation-9.3.8.v20160314.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain nxt.Nxt
Initializing Nxt server version 1.8.0e
Command line arguments
-Didea.launcher.port=7536
-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\bin
-Dfile.encoding=UTF-8
isHeadless=false
Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:264)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Caused by: java.lang.RuntimeException: Using an nxt-default.properties file from a version other than 1.8.0e is not supported!!!
   at nxt.Nxt.<clinit>(Nxt.java:77)
   ... 3 more
Runtime mode nxt.env.CommandLineMode
User home folder C:\Users\testd\Downloads\nxt-private-1.8

Process finished with exit code 1
Logged
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +439/-42
  • Offline Offline
  • Posts: 1795
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #32 on: March 21, 2016, 10:26:22 pm »

Try Placing a breakpoint in Nxt.java above line 77 and see exactly which nxt-default.properties file is loaded.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

testdruif

  • Full Member
  • ***
  • Karma: +71/-1
  • Offline Offline
  • Posts: 223
    • View Profile
Re: Upcoming features in 1.8 release
« Reply #33 on: March 21, 2016, 10:32:02 pm »

Try Placing a breakpoint in Nxt.java above line 77 and see exactly which nxt-default.properties file is loaded.

fixed it by adding the conf folder to the sources in project structure
Logged
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net
Pages: 1 [2]  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly