Nxt Forum

Nxt Discussion => Nxt General Discussion => Topic started by: Riker on August 07, 2017, 01:46:12 pm

Title: NXT 1.11.7 Q&A
Post by: Riker on August 07, 2017, 01:46:12 pm
Q&A about the newly introduced "Scheduled Transactions" feature to prevent front running the unconfirmed transactions pool.
See also https://nxtforum.org/general-discussion/the-story-of-the-ignis-crowd-sale-(first-round) which explains the motivation for this feature.

Q: what's the priority to execute these buy orders, when they will hit blockchain? Same as usual?
A: As soon as the node scheduler storing the scheduled transactions sees the exchange offer as an unconfirmed transaction, it will immediately broadcast your currency buy transactions.
And they will compete with the rest of the transaction for inclusion in the next block, according to the usual transaction priority.

Q: So, if I understand correctly, this new stuff is for users to make buy transaction in advance, instead of lurking near PC and try to be fast?
A: Exactly

Q: And if my advanced buy order is not filled, I need to repeat the same before the next batch? Am I right, this new stuff do not solve MAAC problem?
A: It does solve it, since MAAC found a way to submit his transaction while the Jelurida exchange offer was still unconfirmed and invisible to the UI.
With 1.11.7, every scheduled transaction will do exactly that.

Q: When Jelurida exchange offer becomes valid? Only when approved or broadcasted?
A: When the Jelurida exchange offer is still unconfirmed the scheduler will submit the buy orders

Q: will not wait for approval of it?
A: They will all approve in the same block, the exchange offer will have the earliest arrival time so the currency buy transactions will match it in the same block just like MAAC did it manually

Q: But looking at history, approval account approves exchange offer few block later. I feel some confusion here. Always thought, that without approval any transaction is not "valid".
A: The exchange offer will no longer be phased, just regular transaction

Q: And if my scheduled buy order is not filled, I need to repeat the same order before the next batch?
A: Yes, as usual, however you'll compete on level terms with everyone else

Q: What do I need in order to submit a scheduled transaction?
A: You'll need a full node running on localhost, or a remote full node to which you have the admin password. As usual your passphrase is never submitted to the remote node

Q: Where can I see my scheduled transactions?
A: Use the getScheduledTransactions API

Q: What if restarted my node?
A: You'll need to resubmit the scheduled transactions

Q: What is the maximum number of transactions I can schedule?
A: 100 per node

Q: How do I delete scheduled transactions?
A: From the "Scheduled Transactions" page in the wallet.

Q: Can I use the jelurida.com public node to post scheduled transactions?
A: No, since we do not reveal the admin password for our public node

Q: Do I see my scheduled transaction as unconfirmed or somewhere in the wallet?
A: You see it in the "Scheduled Transactions" page in the wallet.

Q: Can I schedule a phased currency buy transaction?
A: No

Q: If I am running a full Nxt node on a vps which I have control in but don't fully trust, so I don't want to expose my passphrase to it. How should I submit a scheduled transaction on the vps safely?
A: When you submit scheduled transactions to a remote node, your passphrase is not submitted to the remote node. You do need specify the admin password of the remote node in the account settings of your wallet.

Q: How do I know that my scheduled transactions were indeed submitted?
A: If your transactions were submitted you will see them in your wallet dashboard and you can follow your balance changes in the account ledger page as usual.
Title: Re: NXT 1.11.7 Q&A
Post by: Brangdon on August 07, 2017, 01:49:51 pm
Q: what's the priority to execute these buy orders, when they will hit blockchain? Same as usual?
A: As soon as the node scheduler storing the scheduled transactions sees the exchange offer as an unconfirmed transaction, it will immediately broadcast your currency buy transactions.
And they will compete with the rest of the transaction for inclusion in the next block, according to the usual transaction priority.
Good stuff. Can you spell out what the "usual transaction priority" is? Will a higher fee transaction always beat a lower fee one?
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 07, 2017, 01:52:18 pm
Q: what's the priority to execute these buy orders, when they will hit blockchain? Same as usual?
A: As soon as the node scheduler storing the scheduled transactions sees the exchange offer as an unconfirmed transaction, it will immediately broadcast your currency buy transactions.
And they will compete with the rest of the transaction for inclusion in the next block, according to the usual transaction priority.
Good stuff. Can you spell out what the "usual transaction priority" is? Will a higher fee transaction always beat a lower fee one?

See https://nxtwiki.org/wiki/How_Tx_Processing_Works "4 Transactions Order within a Block"
Title: Re: NXT 1.11.7 Q&A
Post by: Neomadra on August 07, 2017, 01:55:59 pm
Thanks Riker. This is an ingenious solution. I got my JLRDA this morning using a bot to be honest. With this update, bots should become obsolete.
Incidentally, much respect for staying so rational and calm during the panic in the past days. I acknowledge it must have been tough for you and the dev team.

Great job!
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 07, 2017, 02:03:15 pm
Thanks Riker. This is an ingenious solution. I got my JLRDA this morning using a bot to be honest. With this update, bots should become obsolete.
Incidentally, much respect for staying so rational and calm during the panic in the past days. I acknowledge it must have been tough for you and the dev team.

Great job!

Thanks man, being a blockchain developer sometimes require nerves of steel.
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 07, 2017, 02:04:10 pm
Q: Can I use the jelurida.com public node to post scheduled transactions?
A: No, since we do not reveal the admin password for our public node


Merged with OP
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 07, 2017, 02:08:01 pm
Q: Where can I see my scheduled transactions?
A: Use the getScheduledTransactions API

Q: What if restarted my node?
A: You'll need to resubmit the scheduled transactions

Q: What is the maximum number of transactions I can schedule?
A: 100 per node


Merged with OP
Title: Re: NXT 1.11.7 Q&A
Post by: zuqka on August 07, 2017, 02:10:12 pm
Thank you devs. Please update the first post with the added new Q/A ;)
Title: Re: NXT 1.11.7 Q&A
Post by: Werum on August 07, 2017, 03:50:10 pm
Thanks Riker. This is an ingenious solution. I got my JLRDA this morning using a bot to be honest. With this update, bots should become obsolete.
Incidentally, much respect for staying so rational and calm during the panic in the past days. I acknowledge it must have been tough for you and the dev team.

Great job!

Heh, now you need new bot to make schedule transaction first then any one else. Am I right?
Title: Re: NXT 1.11.7 Q&A
Post by: danp123 on August 07, 2017, 04:47:40 pm
 https://bitbucket.org/JeanLucPicard/nxt/downloads/nxt-client-1.11.7.exe

this link doesn't exist

EDIT, got it from the site, old client has the wrong link.

Like the new system, good work
Title: Re: NXT 1.11.7 Q&A
Post by: Muenzpraeger on August 07, 2017, 05:15:51 pm
Great update! Kudos to the team.

I've voiced my discontent with how the first rounds have unfolded but this is a great response. You've made the playing field level again.
Title: Re: NXT 1.11.7 Q&A
Post by: dollabillz on August 07, 2017, 05:49:26 pm
Total noob here.. Need bit of help from you guys.

When I Submit BUY JLRDA i got notification that buy "The buy currency order has been submitted."

But i don't see it anywhere.

How do i know is this submitted or not ?

How to verify ?

For Rate what value is recommended ?

Anything else needed to preform in wallet before or just go to IGNIS token sale ?

I just installed my wallet and transferred NXT from exchange.
Title: Re: NXT 1.11.7 Q&A
Post by: MrV777 on August 07, 2017, 05:50:48 pm
Total noob here.. Need it of help from you guys.

When i Submit BUY JLRDA i got notification that buy "The buy currency order has been submitted."

But i don't see it anywhere. How do i know is this submitted or not ? How to verify ? For Rate what value is recommended ?

Rate value is not changeable, so don't worry about that.
You won't see it anywhere except in `getScheduledTransactions` since it is waiting to be broadcasted.  You can find that API here: http://localhost:7876/test
Title: Re: NXT 1.11.7 Q&A
Post by: dollabillz on August 07, 2017, 05:53:45 pm
Total noob here.. Need it of help from you guys.

When i Submit BUY JLRDA i got notification that buy "The buy currency order has been submitted."

But i don't see it anywhere. How do i know is this submitted or not ? How to verify ? For Rate what value is recommended ?

Rate value is not changeable, so don't worry about that.
You won't see it anywhere except in `getScheduledTransactions` since it is waiting to be broadcasted.  You can find that API here:

Nice. Now just got to wait 1h and see will it go through.
Title: Re: NXT 1.11.7 Q&A
Post by: neofelis on August 07, 2017, 06:57:24 pm
Awesome fix.  :)

Thank you, Riker.
Title: Re: NXT 1.11.7 Q&A
Post by: digicoiner on August 07, 2017, 07:17:16 pm
Total noob here.. Need it of help from you guys.

When i Submit BUY JLRDA i got notification that buy "The buy currency order has been submitted."

But i don't see it anywhere. How do i know is this submitted or not ? How to verify ? For Rate what value is recommended ?

Rate value is not changeable, so don't worry about that.
You won't see it anywhere except in `getScheduledTransactions` since it is waiting to be broadcasted.  You can find that API here: http://localhost:7876/test

what fields within that method do we need to look at to confirm it's waiting to be broadcast? Can I log off my account and keep the node running?
Title: Re: NXT 1.11.7 Q&A
Post by: Brainslnside on August 08, 2017, 07:44:16 am
Decent solution and a timely update, taking the amount of time developer team had to fix the ICO bot issue.

Thank you. Well done, gentlemen.
Title: Re: NXT 1.11.7 Q&A
Post by: starik69 on August 08, 2017, 09:42:43 am
Total noob here.. Need it of help from you guys.

When i Submit BUY JLRDA i got notification that buy "The buy currency order has been submitted."

But i don't see it anywhere. How do i know is this submitted or not ? How to verify ? For Rate what value is recommended ?

Rate value is not changeable, so don't worry about that.
You won't see it anywhere except in `getScheduledTransactions` since it is waiting to be broadcasted.  You can find that API here: http://localhost:7876/test

what fields within that method do we need to look at to confirm it's waiting to be broadcast? Can I log off my account and keep the node running?
Try such link with your account
http://localhost:7876/nxt?requestType=getScheduledTransactions&account=NXT-XXXX-XXXX-XXXX-XXXXX
 ::)
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 08, 2017, 10:32:13 am
Total noob here.. Need it of help from you guys.

When i Submit BUY JLRDA i got notification that buy "The buy currency order has been submitted."

But i don't see it anywhere. How do i know is this submitted or not ? How to verify ? For Rate what value is recommended ?

Rate value is not changeable, so don't worry about that.
You won't see it anywhere except in `getScheduledTransactions` since it is waiting to be broadcasted.  You can find that API here: http://localhost:7876/test

what fields within that method do we need to look at to confirm it's waiting to be broadcast? Can I log off my account and keep the node running?

Any buy currency transaction for JLRDA with the correct rate listed by getScheduledTransactions will be broadcast once the Jelurida exchange offer is published.
You can close the browser tab or desktop wallet window but you should keep the nxt node running since the scheduled transactions are only stored in the node memory and not in any persistent storage.
Title: Re: NXT 1.11.7 Q&A
Post by: Evan on August 08, 2017, 04:31:00 pm
If I am running a full Nxt node on a vps which I have control in but don't fully trust, so I don't want to expose my passphrase to it. How should I submit a scheduled transaction on the vps safely?
Title: Re: NXT 1.11.7 Q&A
Post by: Amsi on August 08, 2017, 07:15:21 pm
This ICO "method" is the worst ive ever seen.
Title: Re: NXT 1.11.7 Q&A
Post by: gcmartinelli on August 08, 2017, 07:21:00 pm
Should I be seeing transactions on my ledger from failed scheduled orders from Ignis Token Sale?

I'm not being charged NXT as transaction fees whenever the round ends... so I'm not sure my node is actually sending the orders
Title: Re: NXT 1.11.7 Q&A
Post by: Muenzpraeger on August 08, 2017, 07:28:01 pm
yes, you should. Had the same problem yesterday. nothing was sent. today, the transactions went through but alas no luck.
Title: Re: NXT 1.11.7 Q&A
Post by: gcmartinelli on August 08, 2017, 07:31:59 pm
yes, you should. Had the same problem yesterday. nothing was sent. today, the transactions went through but alas no luck.

Has anyone seen any bug report or suggestions from devs on how to solve this?

I'm running 1.11.7 on a Linux VPS.
Title: Re: NXT 1.11.7 Q&A
Post by: Amsi on August 08, 2017, 07:33:12 pm
i have done this "scheduling"  ... now near all my NXT are lost, but i havent receive JLRDA  ??? ??? ??? ??? ??? ??? ??? ???
Title: Re: NXT 1.11.7 Q&A
Post by: Neomadra on August 08, 2017, 09:52:21 pm
This ICO "method" is the worst ive ever seen.

It may be not the best. But it's the most exciting for sure.  :D
Title: Re: NXT 1.11.7 Q&A
Post by: sirpask on August 08, 2017, 11:08:54 pm
The demand for ignis is incredible.
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 09, 2017, 06:25:06 am
If I am running a full Nxt node on a vps which I have control in but don't fully trust, so I don't want to expose my passphrase to it. How should I submit a scheduled transaction on the vps safely?

When you submit scheduled transactions to a remote node, your passphrase is not submitted to the remote node.
You do need specify the adminPassword of the remote node in the account settings of your wallet.
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 09, 2017, 06:28:31 am
Should I be seeing transactions on my ledger from failed scheduled orders from Ignis Token Sale?

I'm not being charged NXT as transaction fees whenever the round ends... so I'm not sure my node is actually sending the orders

If your transactions were submitted you will see them in your wallet dashboard and you can follow your balance changes in the account ledger page.
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 09, 2017, 06:31:28 am
yes, you should. Had the same problem yesterday. nothing was sent. today, the transactions went through but alas no luck.

Probably not a bug, the sell order from Jelurida is being filled in seconds so many transactions are unable to buy.
Title: Re: NXT 1.11.7 Q&A
Post by: forkedchain on August 09, 2017, 10:04:36 am
If I am running a full Nxt node on a vps which I have control in but don't fully trust, so I don't want to expose my passphrase to it. How should I submit a scheduled transaction on the vps safely?

When you submit scheduled transactions to a remote node, your passphrase is not submitted to the remote node.
You do need specify the adminPassword of the remote node in the account settings of your wallet.
riker,  can you elaborate a bit on this?  i read your statement as we can use API call on a remote node in order to schedule a transaction, and not send our passphrase??  i dont understand?
Title: Re: NXT 1.11.7 Q&A
Post by: Riker on August 09, 2017, 11:58:16 am
If I am running a full Nxt node on a vps which I have control in but don't fully trust, so I don't want to expose my passphrase to it. How should I submit a scheduled transaction on the vps safely?

When you submit scheduled transactions to a remote node, your passphrase is not submitted to the remote node.
You do need specify the adminPassword of the remote node in the account settings of your wallet.
riker,  can you elaborate a bit on this?  i read your statement as we can use API call on a remote node in order to schedule a transaction, and not send our passphrase??  i dont understand?

As usual, when you submit a transaction to a remote node your passphrase is not sent to the remote node and your client performs local signing.

It works like this:
1. Client - submits transaction data is submitted with your public key
2. Remote node - packages the unsigned transaction bytes and json and send it back to the client
3. Client - validates that the returned bytes indeed represent to the data it submitted to the remote node
4. Client - signs the unsigned bytes using its passphrase and submits the signed bytes using the broadcastTransaction API
5. Remote node - broadcasts the transaction to the blockchain - when using scheduled transaction this is done by the scheduler when it identifies the exchange offer in the unconfirmed transactions pool
Title: Re: NXT 1.11.7 Q&A
Post by: eu58 on August 09, 2017, 01:07:46 pm
i have done this "scheduling"  ... now near all my NXT are lost, but i havent receive JLRDA  ??? ??? ??? ??? ??? ??? ??? ???

1. You created a so-called "Phased Transaction", not a scheduled one. This type of transaction can only be reached when you open the advanced options. There is no need to open the advanced Options for the IGNIS ICO.

2. Your NXT are blocked, not lost. You specified the condition(s) when your NXT are available again.
Title: Re: NXT 1.11.7 Q&A
Post by: Evan on August 09, 2017, 03:06:38 pm
If I am running a full Nxt node on a vps which I have control in but don't fully trust, so I don't want to expose my passphrase to it. How should I submit a scheduled transaction on the vps safely?

When you submit scheduled transactions to a remote node, your passphrase is not submitted to the remote node.
You do need specify the adminPassword of the remote node in the account settings of your wallet.
riker,  can you elaborate a bit on this?  i read your statement as we can use API call on a remote node in order to schedule a transaction, and not send our passphrase??  i dont understand?

As usual, when you submit a transaction to a remote node your passphrase is not sent to the remote node and your client performs local signing.

It works like this:
1. Client - submits transaction data is submitted with your public key
2. Remote node - packages the unsigned transaction bytes and json and send it back to the client
3. Client - validates that the returned bytes indeed represent to the data it submitted to the remote node
4. Client - signs the unsigned bytes using its passphrase and submits the signed bytes using the broadcastTransaction API
5. Remote node - broadcasts the transaction to the blockchain - when using scheduled transaction this is done by the scheduler when it identifies the exchange offer in the unconfirmed transactions pool

I am a little comfused with the client part. as for the case of a nxt full node on a vps, I only need to open the 7876 port, when I connect it remotely, my browser downloads html/www files and uses them as the client, right?

if my understanding is correct, I have to assume that the html/www files are not modified on the vps and there is no middle man attack, right?
Title: Re: NXT 1.11.7 Q&A
Post by: MrV777 on August 09, 2017, 03:12:53 pm
I am a little comfused with the client part. as for the case of a nxt full node on a vps, I only need to open the 7876 port, when I connect it remotely, my browser downloads html/www files and uses them as the client, right?

if my understanding is correct, I have to assume that the html/www files are not modified on the vps and there is no middle man attack, right?

That is why localhost is recommended :)
Title: Re: NXT 1.11.7 Q&A
Post by: jaybny on August 09, 2017, 11:07:36 pm
What happens if  there are multiple transactions that spend my entire balance? Is only the first one valid? If there are no more IGNIS tokens, do i get charges TX fee for each transaction?
Title: Re: NXT 1.11.7 Q&A
Post by: MrV777 on August 10, 2017, 01:13:27 am
What happens if  there are multiple transactions that spend my entire balance? Is only the first one valid? If there are no more IGNIS tokens, do i get charges TX fee for each transaction?

Only one will be valid.  The rest will fail immediately for lack of funds.  You will get charged fees for any tx that is accepted to the blockchain, whether there are IGNIS tokens or not, as you are still doing a blockchain operation and your tx will be recorded
Title: Re: NXT 1.11.7 Q&A
Post by: jaybny on August 10, 2017, 04:37:19 pm
What happens if  there are multiple transactions that spend my entire balance? Is only the first one valid? If there are no more IGNIS tokens, do i get charges TX fee for each transaction?

Only one will be valid.  The rest will fail immediately for lack of funds.  You will get charged fees for any tx that is accepted to the blockchain, whether there are IGNIS tokens or not, as you are still doing a blockchain operation and your tx will be recorded

So what happened? Where can we see the block with my transactions? Or did the one who forged it.. only put in some transactions?
Title: Re: NXT 1.11.7 Q&A
Post by: gh on August 10, 2017, 04:40:24 pm
.
Title: Re: NXT 1.11.7 Q&A
Post by: MrV777 on August 10, 2017, 05:51:01 pm
So what happened? Where can we see the block with my transactions? Or did the one who forged it.. only put in some transactions?

You should see it on nxtportal or mynxt explorers.  If you give me your account ID, I can point it out to you if you need
Title: Re: NXT 1.11.7 Q&A
Post by: MrV777 on August 10, 2017, 05:54:27 pm
I have two questions:

1) What happens to all the fees in the Ignis Token Sale transactions which are not accepted into the block? Are those NXT just burnt?

2) Many phased transactions which occur at the token sale block seem not to be accepted. Isn't it problematic for the NXT system in general that phased transactions can not be guaranteed to occur? For example, what if someone has set up a testament, all the conditions are met and then the transaction does not occur after all. I guess the probability of this happening exactly at the token sale block is low, but still...

1.) All tx's that are actually sent, will be accepted by a block.  If the blocks are full it will just get bumped to the next block.  As far as I know, no fees are burned.  Either the transaction is sent, and the fees go to the forger; or the transaction will not be accepted by the blockchain and the fees are never spent.
2.) What do you mean?  Many of the phased transactions are being refunded because there was no valid exchange offer to sell when the phased transaction to buy was entered or approved.
Title: Re: NXT 1.11.7 Q&A
Post by: bigdogdan2 on August 11, 2017, 12:39:30 am
If I previously installed the light client, what do I need to do to install the full client?

I've tried uninstalling the light client, then installing 1.11.7 (full client) and then when I tried to log in with my previous NXT ID and when I logged in it said "Not Connected"  And then at the top it still says light client when I installed full.  Am I missing steps?
Title: Re: NXT 1.11.7 Q&A
Post by: forkedchain on August 11, 2017, 04:20:52 am
the software is the same, its the setting in your conf/nxt.properties file that makes it become a full node.  if that file doesnt exist in the conf directory, create it, and put this in it:
nxt.isLightClient=false

it may take some time to get the full blockchain.  but you got a few weeks now.
elective-stereophonic
elective-stereophonic
assembly
assembly