elective-stereophonic
elective-stereophonic
A simpler Gateway built in to official client
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 2 [3]  All

Author Topic: A simpler Gateway built in to official client  (Read 7452 times)

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #40 on: June 20, 2014, 05:29:21 pm »

So you are suggesting to rescan the blockchain on every login?
Otherwise how will the webGUI know what the deposit address is?

UI already shows all your transactions and messages after every login. It will show the deposit address similarly.

Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #41 on: June 20, 2014, 05:30:16 pm »

So you are suggesting to rescan the blockchain on every login?
Otherwise how will the webGUI know what the deposit address is?

UI already shows all your transactions and messages after every login. It will show the deposit address similarly.
so doesnt this mean it is stored locally?
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #42 on: June 20, 2014, 05:31:46 pm »

so doesnt this mean it is stored locally?

It's on the blockchain just like your messages, transaction, balance, all blocked you forged etc. The UI shows all that info

Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #43 on: June 20, 2014, 05:46:42 pm »

so doesnt this mean it is stored locally?

It's on the blockchain just like your messages, transaction, balance, all blocked you forged etc. The UI shows all that info
yes I am aware of that
are you saying the GUI rescans the blockchain everytime you login?
It sure seems to instantly show a lot of info, almost as if it was storing stuff locally.
do you know or are you assuming it rescans the blockchain?

Clearly storing locally or rescanning the blockchain are the options. If it can rescan the entire blockchain without a noticeable delay then that is better
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #44 on: June 20, 2014, 06:16:59 pm »

so doesnt this mean it is stored locally?

It's on the blockchain just like your messages, transaction, balance, all blocked you forged etc. The UI shows all that info
yes I am aware of that
are you saying the GUI rescans the blockchain everytime you login?
It sure seems to instantly show a lot of info, almost as if it was storing stuff locally.
do you know or are you assuming it rescans the blockchain?

Clearly storing locally or rescanning the blockchain are the options. If it can rescan the entire blockchain without a noticeable delay then that is better

Doesn't UI just use API calls to retrieve all that info? A message would be one of the transaction from user's account.

Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #45 on: June 20, 2014, 06:25:59 pm »

so doesnt this mean it is stored locally?

It's on the blockchain just like your messages, transaction, balance, all blocked you forged etc. The UI shows all that info
yes I am aware of that
are you saying the GUI rescans the blockchain everytime you login?
It sure seems to instantly show a lot of info, almost as if it was storing stuff locally.
do you know or are you assuming it rescans the blockchain?

Clearly storing locally or rescanning the blockchain are the options. If it can rescan the entire blockchain without a noticeable delay then that is better

Doesn't UI just use API calls to retrieve all that info? A message would be one of the transaction from user's account.
sure, but which API calls. I am not aware of an API that says give me list of all AM's I have received. Would make things a lot simpler and maybe there is. A lot of new API calls get added without any real notice so sometimes I am pleasantly surprised with a new one

Unless this API call has been added, you need to find all the AM messages which are in a certain type of transaction, so that means API calls to get the block and then scan for the right transaction.

Now I am having all sorts of performance problems with libcurl. I can issue 20000+ per second, but if I go much faster than 500 per second, it starts sputtering.

So, this is why I suggested the deposit address be stored locally. Or somebody tell me how to get all AM's without rescanning. or how I can make 20000 curl requests per second without it gagging

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #46 on: June 20, 2014, 06:27:22 pm »

sure, but which API calls. I am not aware of an API that says give me list of all AM's I have received. Would make things a lot simpler and maybe there is. A lot of new API calls get added without any real notice so sometimes I am pleasantly surprised with a new one

Is there API call for list your transactions? AM is a transaction
Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #47 on: June 20, 2014, 06:34:30 pm »

sure, but which API calls. I am not aware of an API that says give me list of all AM's I have received. Would make things a lot simpler and maybe there is. A lot of new API calls get added without any real notice so sometimes I am pleasantly surprised with a new one

Is there API call for list your transactions? AM is a transaction

I just checked this, and this seems to be true. getAccountTransactionIds includes AMs to that account.
Logged
NXT-CSED-4PK5-AR4V-6UB5V

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #48 on: June 20, 2014, 06:34:36 pm »

sure, but which API calls. I am not aware of an API that says give me list of all AM's I have received. Would make things a lot simpler and maybe there is. A lot of new API calls get added without any real notice so sometimes I am pleasantly surprised with a new one

Is there API call for list your transactions? AM is a transaction
yup! you are right
getAccountTransactionIds

That wasnt there when I looked for it last, but I need to do this for all accounts and since I scan blockchain anyway I never bothered to look for account specific txs

thanks, this will help in some cases

so you were right, no need to store locally if this gets all tx for an account.

James

P.S. do you know how to do lots of curl calls really fast without making things comatose?
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #49 on: July 16, 2014, 10:10:21 pm »

https://nxtforum.org/trading-exchanges/dgex-hacked-for-52-btc-1-2m-nxt/

I bet the above would not have not  happened if we had an exchange that was  based on blockchain

Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

antanst

  • Full Member
  • ***
  • Karma: +36/-0
  • Offline Offline
  • Posts: 216
    • View Profile
    • nxtblocks.info
Re: A simpler Gateway built in to official client
« Reply #50 on: July 17, 2014, 08:06:38 am »

We've got something in the works, and hopefully we'll announce a beta version of a gateway in the following weeks. It will be a separate project from nxtblocks.info. Stay tuned.
Logged

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: A simpler Gateway built in to official client
« Reply #51 on: August 21, 2014, 05:07:17 am »

We've got something in the works, and hopefully we'll announce a beta version of a gateway in the following weeks. It will be a separate project from nxtblocks.info. Stay tuned.

A month later .. still nothing?
Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

antanst

  • Full Member
  • ***
  • Karma: +36/-0
  • Offline Offline
  • Posts: 216
    • View Profile
    • nxtblocks.info
Re: A simpler Gateway built in to official client
« Reply #52 on: August 21, 2014, 08:42:37 am »

We've got something in the works, and hopefully we'll announce a beta version of a gateway in the following weeks. It will be a separate project from nxtblocks.info. Stay tuned.

A month later .. still nothing?

Nothing indeed. The nxtblocks asset sales were far slower that we expected, which means that we had to reprioritize a bit. We are still developing the gateway, but it's not ready yet.

The fact that NRS again has breaking API changes and new incompatibilities doesn't help as well.
« Last Edit: August 21, 2014, 08:45:29 am by antanst »
Logged
Pages: 1 2 [3]  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly