Author Topic: Developer delegate: dev.bitsharesblocks  (Read 105242 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
yet another feature request:

Can you run
Code: [Select]
blockchain_list_address_balances <address>on all active keys and list all funds when opening an account in the explorer?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
I just burned my update for my delegate but it doesn't appear anywhere. :(
But it's on the blockchain:

Quote
delegate (locked) >>> blockchain_get_account_wall delegate.rgcrypto
AMOUNT                        MESSAGE                                                                                             SIGNER                       
================================================================================================================================================================
100.00000 BTS                 Traffic Generation Machine Report - 100% Marketing Delegate - First week on the job: https://rgcrypto.wordpress.com/2015/02/08/january-25th-to-february-7th-delegate-report/delegate.rgcrypto

seems svk does not have that feature for a particular delegate yet .. the "tollbox" at the front page shows your post here too

Offline rgcrypto

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Cryptoctopus Blog
I just burned my update for my delegate but it doesn't appear anywhere. :(

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
i'm getting problems to display site on mobile devices!

Also on OSx FF 35 just delegate ranking isn't displayed! Maybe SSL switch could cause this issue!?
What do you think!? Or any other idea ?
« Last Edit: February 10, 2015, 01:02:08 am by cass »
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
BTW, from the reset changelog for 0.6.0:
Quote
- Add blockchain_get_slate command to view an account's published recommended voting slate

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Cloudflare is caching it.. Go into cloudflare and create a custom handler for json files ensure it is never cached,, cf hit means its not even getting to your server

Looks like it was the rocket loader, which is the cdn-cgi/pe/bag2 stuff. I really didn't expect cloudflare to touch the api calls though since they're on a different sub-domain. I turned off the rocket loader, if that doesn't help I'll make a page rule as well.

@arhag shout if you see it again please!

Rocket loader is good for images and external resources being loaded u might want that.. U can do a gtmetrix on it to see if it improves the score with it.. So the page rule would make sense if it does improve it
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline svk

Cloudflare is caching it.. Go into cloudflare and create a custom handler for json files ensure it is never cached,, cf hit means its not even getting to your server

Looks like it was the rocket loader, which is the cdn-cgi/pe/bag2 stuff. I really didn't expect cloudflare to touch the api calls though since they're on a different sub-domain. I turned off the rocket loader, if that doesn't help I'll make a page rule as well.

@arhag shout if you see it again please!

Worker: dev.bitsharesblocks

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Cloudflare is caching it.. Go into cloudflare and create a custom handler for json files ensure it is never cached,, cf hit means its not even getting to your server

Im not sure you know its a json request from those urls... It might also be the rocket loader because it has that bag thing which means rocket is enabled...

Lastly if you are doing some kind of ssi calls in html the js optimizer for cloudflare will strip those out.. Some apis use ssi for dynamic updates to html via php

As for caching maybe u can make the query so that snything from api.bitsharesblocks.com is never cached and not optimized via rocket or anything else. Its a setting in your website cloudflare settings
« Last Edit: February 08, 2015, 07:46:00 pm by jsidhu »
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline svk

OK that is helpful, does look like you're getting data via cloudflare which really shouldn't happen. I'll play around with the settings to see if I can fix it.
Worker: dev.bitsharesblocks

Offline arhag

  • Hero Member
  • *****
  • Posts: 1214
    • View Profile
    • My posts on Steem
  • BitShares: arhag
  • GitHub: arhag
Wow, I have it open all the time and I've never seen that happen, and I struggle to see how that's even possible. Can you send me a copy of the api response if it happens again please?

Well the returned JSONs are pretty large, so I'll just share small snippets of them. I can send you the whole thing through other means if you want. But the first one is the response one would normally expect and the second response seems like what one would normally expect if they were to go back in time 2 days.

First API request:
Code: [Select]
Remote Address:198.41.206.35:443
Request URL:https://bitsharesblocks.com/cdn-cgi/pe/bag2?r[]=https%3A%2F%2Fapi.bitsharesblocks.com%2Fv2%2Forderbook%2FUSD%3Fcallback%3Dangular.callbacks._1
Request Method:GET
Status Code:200 OK
Request Headers
:host:bitsharesblocks.com
:method:GET
:path:/cdn-cgi/pe/bag2?r[]=https%3A%2F%2Fapi.bitsharesblocks.com%2Fv2%2Forderbook%2FUSD%3Fcallback%3Dangular.callbacks._1
:scheme:https
:version:HTTP/1.1
accept:*/*
accept-encoding:gzip, deflate, sdch
accept-language:en-US,en;q=0.8
cookie:__cfduid=dbeffddf86d1196aef164e2274f838df01415915447; NG_TRANSLATE_LANG_KEY=%22en%22; _gat=1; _ga=GA1.2.1716180767.1406960962
pe-token:fd7f93c3e0d2cc743fdce7fd2df2ed30250dc3e7-1423422368-43200
referer:https://bitsharesblocks.com/asset/orderbook?asset=USD
user-agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.91 Safari/537.36
Query String Parametersview sourceview URL encoded
r[]:https://api.bitsharesblocks.com/v2/orderbook/USD?callback=angular.callbacks._1
Response Headers
cf-ray:1b5a1a4f8add0ef1-EWR
content-encoding:gzip
content-type:multipart/mixed; boundary="xx:.cVCRARLQ"
date:Sun, 08 Feb 2015 19:06:09 GMT
server:cloudflare-nginx
status:200 OK
version:HTTP/1.1

And a snippet of its response:
Code: [Select]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="xx:.cVCRARLQ"

--xx:.cVCRARLQ
X-Cf-Url: https://api.bitsharesblocks.com/v2/orderbook/USD?callback=angular.callbacks._1
X-Cf-Status: 200
Content-Transfer-Encoding: binary
X-Cf-Max-Age: 7200
X-Cf-Cache-Status: HIT
Content-Type: text/javascript; charset=utf-8
X-Cf-Error: false

typeof angular.callbacks._1==='function'&&angular.callbacks._1(")]}',\n{\"_id\":22,\"symbol\":\"USD\",\"issuer_account_id\":-2,\"precision\":10000,\"medianFeed\":0.00932938159404307,\"dailyVolume\":23192618.96718,\"baseAsset\":\"BTS\",\"asks\":[{\"price\":104.50000000470251,\"amount\":8673.5},{\"price\":104.19790104033648,\"amount\":46235.89839},
...
[104.50000000470251,8673.5]]}}");
--xx:.cVCRARLQ--

Second API request:
Code: [Select]
Remote Address:198.41.206.35:443
Request URL:https://bitsharesblocks.com/cdn-cgi/pe/bag2?r[]=https%3A%2F%2Fapi.bitsharesblocks.com%2Fv2%2Forderbook%2FUSD%3Fcallback%3Dangular.callbacks._2
Request Method:GET
Status Code:200 OK
Request Headers
:host:bitsharesblocks.com
:method:GET
:path:/cdn-cgi/pe/bag2?r[]=https%3A%2F%2Fapi.bitsharesblocks.com%2Fv2%2Forderbook%2FUSD%3Fcallback%3Dangular.callbacks._2
:scheme:https
:version:HTTP/1.1
accept:*/*
accept-encoding:gzip, deflate, sdch
accept-language:en-US,en;q=0.8
cookie:__cfduid=dbeffddf86d1196aef164e2274f838df01415915447; NG_TRANSLATE_LANG_KEY=%22en%22; _ga=GA1.2.1716180767.1406960962
pe-token:fd7f93c3e0d2cc743fdce7fd2df2ed30250dc3e7-1423422368-43200
referer:https://bitsharesblocks.com/asset/orderbook?asset=USD
user-agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.91 Safari/537.36
Query String Parametersview sourceview URL encoded
r[]:https://api.bitsharesblocks.com/v2/orderbook/USD?callback=angular.callbacks._2
Response Headers
cf-ray:1b5a1ad001cb0ef1-EWR
content-encoding:gzip
content-type:multipart/mixed; boundary="P1PYbx4kW3o6"
date:Sun, 08 Feb 2015 19:06:29 GMT
server:cloudflare-nginx
status:200 OK
version:HTTP/1.1

And a snippet of its response:
Code: [Select]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="P1PYbx4kW3o6"

--P1PYbx4kW3o6
X-Cf-Url: https://api.bitsharesblocks.com/v2/orderbook/USD?callback=angular.callbacks._2
X-Cf-Status: 200
Content-Transfer-Encoding: binary
X-Cf-Max-Age: 7200
X-Cf-Cache-Status: HIT
Content-Type: text/javascript; charset=utf-8
X-Cf-Error: false

typeof angular.callbacks._2==='function'&&angular.callbacks._2(")]}',\n{\"_id\":22,\"symbol\":\"USD\",\"issuer_account_id\":-2,\"precision\":10000,\"medianFeed\":0.01010961704149931,\"dailyVolume\":734251.3081299999,\"baseAsset\":\"BTS\",\"asks\":[{\"price\":97.50000000389998,\"amount\":7312.5},{\"price\":97.4300000044925,\"amount\":974.3},
...
[97.50000000389998,7312.5]]}}");
--P1PYbx4kW3o6--

Subsequent API requests either return something like the first one or something like the second one. But at the end it always seems to settle down to the second one (the one that is 2 days in the past).

Edit: Hmm, perhaps it was just some weird browser fluke. I deleted everything in local storage and the cookies and refreshed (prior to that refreshing didn't solve the problem) and it seems that the problem isn't showing up again. So just forget about it.
« Last Edit: February 08, 2015, 07:33:33 pm by arhag »

Offline svk

Now that is strange! Are you seeing this in the order history only or for the bids/asks/shorts as well?

The whole thing: bids, asks, shorts, order history, and the graph.

Wow, I have it open all the time and I've never seen that happen, and I struggle to see how that's even possible. Can you send me a copy of the api response if it happens again please?

The api call is cached for 15 seconds max and the database always contains only the latest data from the client, so I'm not sure it's really related to the api.

An idea: maybe it's a sorting issue, what browser are you using?
« Last Edit: February 08, 2015, 07:03:53 pm by svk »
Worker: dev.bitsharesblocks

Offline arhag

  • Hero Member
  • *****
  • Posts: 1214
    • View Profile
    • My posts on Steem
  • BitShares: arhag
  • GitHub: arhag
Now that is strange! Are you seeing this in the order history only or for the bids/asks/shorts as well?

The whole thing: bids, asks, shorts, order history, and the graph.

Offline svk

What's going on with the market page (for example https://bitsharesblocks.com/asset/orderbook?asset=USD)? I am watching the orders and transaction history, and it keeps oscillating between the present state and the state as of two days ago. Literally, the order history shows the last order as one that occurred on Feb 8 at one moment and then the last order suddenly becomes one that occurred at Feb 6. Debugging the page with web inspector shows that the network calls to https://bitsharesblocks.com/cdn-cgi/pe/bag2?r[]=https%3A%2F%2Fapi.bitsharesblocks.com%2Fv2%2Forderbook%2FUSD%3Fcallback%3Dangular.callbacks._1 gives these two different JSON results back (representing the two different states in time).

Also, I was wondering when you were planning on adding support to look at any arbitrary market on the BitShares decentralized exchange, such as the markets between BitAssets and UIAs.

Now that is strange! Are you seeing this in the order history only or for the bids/asks/shorts as well?

I've been concentrating on the web wallet recently, and if there are bugs like this in the existing market code I'll have to sort that out first. In a week or two best guesstimate..
Worker: dev.bitsharesblocks

Offline arhag

  • Hero Member
  • *****
  • Posts: 1214
    • View Profile
    • My posts on Steem
  • BitShares: arhag
  • GitHub: arhag
What's going on with the market page (for example https://bitsharesblocks.com/asset/orderbook?asset=USD)? I am watching the orders and transaction history, and it keeps oscillating between the present state and the state as of two days ago. Literally, the order history shows the last order as one that occurred on Feb 8 at one moment and then the last order suddenly becomes one that occurred at Feb 6. Debugging the page with web inspector shows that the network calls to https://bitsharesblocks.com/cdn-cgi/pe/bag2?r[]=https%3A%2F%2Fapi.bitsharesblocks.com%2Fv2%2Forderbook%2FUSD%3Fcallback%3Dangular.callbacks._1 gives these two different JSON results back (representing the two different states in time).

Also, I was wondering when you were planning on adding support to look at any arbitrary market on the BitShares decentralized exchange, such as the markets between BitAssets and UIAs.

Offline svk

TOTAL NUMBER OF ACCOUNTS at 0 for the past week.

(I know 8 people registered through my links.

Fixed
Worker: dev.bitsharesblocks