Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:26
    varasev edited #3063
  • 14:26
    varasev opened #3063
  • Mar 29 19:52
    geoinheritance opened #3062
  • Mar 29 12:36
    igorbarinov closed #502
  • Mar 29 12:36
    igorbarinov closed #95
  • Mar 29 12:35
    igorbarinov assigned #3059
  • Mar 26 14:57

    vbaranov on production-xdai-stg-temp

    (compare)

  • Mar 26 14:56

    vbaranov on production-sokol-stg-temp

    (compare)

  • Mar 26 14:29
    coveralls commented #3061
  • Mar 26 14:28

    vbaranov on vb-fix-contract-verification

    (compare)

  • Mar 26 14:27

    vbaranov on production-sokol-stg

    Find by contract name npm audit fix Merge pull request #3047 from p… and 16 more (compare)

  • Mar 26 14:25

    vbaranov on master

    Find all require messages in th… Merge pull request #3061 from p… (compare)

  • Mar 26 14:25
    vbaranov closed #3061
  • Mar 26 14:15
    vbaranov synchronize #3061
  • Mar 26 14:15

    vbaranov on vb-fix-contract-verification

    Find all require messages in th… (compare)

  • Mar 26 13:36
    coveralls commented #3061
  • Mar 26 13:26
    coveralls commented #3061
  • Mar 26 13:24
    vbaranov synchronize #3061
  • Mar 26 13:24

    vbaranov on vb-fix-contract-verification

    Find all require messages in th… (compare)

  • Mar 26 13:14
    vbaranov synchronize #3061
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 1 hours and 41 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
bilogate
@bilogate
hello i am taking this error if i clicked accounts
2020-03-04T13:10:29.802 [error] #PID<0.17593.0> running BlockScoutWeb.Endpoint (connection #PID<0.17592.0>, stream id 1) terminated
Server: xxxxxxxxxxxxxx.com:80 (http)
Request: GET /accounts?type=JSON
(exit) an exception was raised: (Decimal.Error) division_by_zero
(decimal 1.8.1) lib/decimal.ex:563: Decimal.div/2
(block_scout_web 0.0.1) lib/block_scout_web/views/address_view.ex:122: BlockScoutWeb.AddressView.balance_percentage/2
(block_scout_web 0.0.1) lib/block_scout_web/templates/address/_tile.html.eex:25: BlockScoutWeb.AddressView."_tile.html"/1
(phoenix 1.4.0) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
(phoenix 1.4.0) lib/phoenix/view.ex:406: Phoenix.View.render_to_string/3
(elixir 1.10.2) lib/enum.ex:1396: Enum."-map/2-lists^map/1-0-"/2
(block_scout_web 0.0.1) lib/block_scout_web/controllers/address_controller.ex:38: BlockScoutWeb.AddressController.index/2
(block_scout_web 0.0.1) lib/block_scout_web/controllers/address_controller.ex:1: BlockScoutWeb.AddressController.action/2
(block_scout_web 0.0.1) lib/block_scout_web/controllers/address_controller.ex:1: BlockScoutWeb.AddressController.phoenix_controller_pipeline/2
(block_scout_web 0.0.1) lib/block_scout_web/endpoint.ex:1: BlockScoutWeb.Endpoint.instrument/4
(phoenix 1.4.0) lib/phoenix/router.ex:275: Phoenix.Router.call/1
(phoenix 1.4.0) lib/phoenix/router/route.ex:39: Phoenix.Router.Route.call/2
(phoenix 1.4.0) lib/phoenix/router.ex:275: Phoenix.Router.call/1
(block_scout_web 0.0.1) lib/block_scout_web/endpoint.ex:1: BlockScoutWeb.Endpoint.plug_builder_call/2
(block_scout_web 0.0.1) lib/plug/debugger.ex:122: BlockScoutWeb.Endpoint."call (overridable 3)"/2
(block_scout_web 0.0.1) lib/block_scout_web/endpoint.ex:1: BlockScoutWeb.Endpoint."call (overridable 4)"/2
(block_scout_web 0.0.1) lib/spandex_phoenix.ex:156: BlockScoutWeb.Endpoint.call/2
(phoenix 1.4.0) lib/phoenix/endpoint/cowboy2_handler.ex:34: Phoenix.Endpoint.Cowboy2Handler.init/2
(cowboy 2.6.3) /root/blockscout/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
(cowboy 2.6.3) /root/blockscout/deps/cowboy/src/cowboy_stream_h.erl:296: :cowboy_stream_h.execute/3
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Hi, you can fix the issue by setting this env var export SHOW_ADDRESS_MARKETCAP_PERCENTAGE=false. I suppose your coin is not on exchanges yet. Thus, Blockscout cannot get coin market cap from CoinGecko API. And this is why you experienced division by zero in calculating percentage of coins per address
bilogate
@bilogate
thank u very much it worked now.
Davy Van Roy
@davyvanroy

Hi Victor, could it be that you don't see my messages due to the sameroom bot that exceeds its daily limit? Anyway, I ran pghero and noticed that here is 1 query that is clogging up the import:

INSERT INTO "addresses" AS a0 ("decompiled","fetched_coin_balance","fetched_coin_balance_block_number","hash","inserted_at","updated_at","verified") VALUES ($1,$2,$3,$4,$5,$6,$7) ON CONFLICT ("hash") DO UPDATE SET "contract_code" = COALESCE(EXCLUDED.contract_code, a0."contract_code"), "fetched_coin_balance" = CASE WHEN EXCLUDED.fetched_coin_balance_block_number IS NOT NULL
      AND EXCLUDED.fetched_coin_balance IS NOT NULL AND
          (a0."fetched_coin_balance" IS NULL OR a0."fetched_coin_balance_block_number" IS NULL OR
           EXCLUDED.fetched_coin_balance_block_number >= a0."fetched_coin_balance_block_number") THEN
            EXCLUDED.fetched_coin_balance
     ELSE a0."fetched_coin_balance"
END
, "fetched_coin_balance_block_number" = GREATEST(EXCLUDED.fetched_coin_balance_block_number, a0."fetched_coin_balance_block_number"), "nonce" = GREATEST(EXCLUDED.nonce, a0."nonce") WHERE ((COALESCE(a0."contract_code", EXCLUDED.contract_code) IS DISTINCT FROM a0."contract_code" OR EXCLUDED.fetched_coin_balance_block_number IS NOT NULL AND (a0."fetched_coin_balance_block_number" IS NULL OR EXCLUDED.fetched_coin_balance_block_number >= a0."fetched_coin_balance_block_number")) OR GREATEST(a0."nonce", EXCLUDED.nonce) IS DISTINCT FROM  a0."nonce") RETURNING "updated_at", "inserted_at", "verified", "decompiled", "nonce", "contract_code", "fetched_coin_balance_block_number", "fetched_coin_balance", "hash"

Hi Victor, did you have any chance to investigate my issue? Thank you

Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Oh, indeed, I missed because of the exceeding messages limit on sameroom bot. Let me take a look at it
[Victor Baranov, POA Network] From what I can see you use Elixir 1.10.2 . Blockscout is nnot well tested yet with this version. It is recommended to use 1.9.4
Davy Van Roy
@davyvanroy
could that be related to the slow query?
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Unlikely, but it is better to use of the supported version to mitigate possible ocasionns. In addition, did you try to increase db pool size by increasing the value POOL_SIZE ?
Davy Van Roy
@davyvanroy
I increased it once to 100, but that one query is clogging up the system since it is called a lot during an initial import. So the error occurs not as fast, but the problem remains
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 24 hours and 0 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
[Victor Baranov, POA Network] What version of Postgres do you use, btw?
Davy Van Roy
@davyvanroy
10.10
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 23 hours and 57 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
[Victor Baranov, POA Network] Ok, DB version is fine. I need to analyze that insert query from performance perspective and will return with the feedback to you.
Victor Baranov
@vbaranov
Btw, is you Blockscout instance indexed already or it is at inception phase? In the indexed state, it should be more stable. If it is still indexing in order to eliminate dropping of requests usual advice is to increase DB server resources on the period of indexing phase
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 23 hours and 49 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
Davy Van Roy
@davyvanroy
it is indeed in the initial indexing phase
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 23 hours and 49 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
Victor Baranov
@vbaranov
Anyways, I will take look to that query once will have a chance. For now, increase the resource if possible to speedup indexing, or wait until indexing finished. Btw, what is your chain capacity comparing to known public chains?
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 23 hours and 46 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
Thore Weilbier
@weilbith
Hi,
I have a question regarding a private Blockscout instance. The chain specification file for the Paity Aura consensus of the monitored chain contains some pre-compiled contracts in the genesis block. Thereby they don't get recognized as such within the explorer view. This also means that the contracts code can't get verified to have a better insight to stored data and events for users. I found that the environment variable CHAIN_SPEC_PATH could improve the handling of the genesis block. Would it also allow to recognize pre-compiled contracts and verify them? Unfortunately I can't test that at the moment locally (Blcokscout crashed all the time). Any input on that idea/question? Thank you so much for your help!
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Hi, by indicating CHAIN_SPEC_PATH variable Blockscout will get all balances for the pre-mined coins, bytecode of pre-compiled contracts and the value of reward per block (take a look to EMISSION_FORMAT variable too). Though, it will not verify those contracts. You still need to accomplish it manually.
Thore Weilbier
@weilbith
Okay, if it just enables the recognition so that the Code tab will occur for this address, then I could verify it as every other contract. :+1:
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Yes, Code tab should appear for for pre-ccompiled contract since Blockscout will grab bytecode to the DB. One note: that only Parity-based spec will be processed.
rajnishtech
@rajnishtech
Hi everyone i have issue with the my blockscout explorer it's showing the blocks. https://blockchain.nimbus-t.com/accounts#
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Hi, which version of Node js did you use to build front-end assets?
rajnishtech
@rajnishtech
node 8
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Got it, it is ann old version. You should use the latest LTS release. The current one is 12.16.1 https://nodejs.org/en/
rajnishtech
@rajnishtech
@sameroom-bot node version has updated still the same issue
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Did you rebuild front-end with the new version?
[Victor Baranov, POA Network] Repeat 10, 11 steps from the deployment guide https://docs.blockscout.com/for-developers/manual-deployment
rajnishtech
@rajnishtech
i all the script i wrote in the service file.my service has started successfully
Sameroom
@sameroom-bot

[Victor Baranov, POA Network] I don’t see that you rebuilt front-end assets. Here is the error from Google Chrome Developer console:

Uncaught Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Missing binding /home/ubuntu/blockscout/apps/block_scout_web/assets/node_modules/node-sass/vendor/linux-x64-57/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 8.x

Found bindings for the following environments:

  • Linux 64-bit with Node.js 10.x
    Follow the steps from the deployment guide
Godokoro
@Godokoro
Hello, is there a way to deploy the explorer without a price feed?
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] >Hello, is there a way to deploy the explorer without a price feed?
Hi https://docs.blockscout.com/for-users/faqs/how-do-i-disable-exchange-rates
[Victor Baranov, POA Network] Screenshot 2020-03-16 at 09.08.01.png
[Victor Baranov, POA Network] > I don’t see that you rebuilt front-end assets. Here is the error from Google Chrome Developer console:
@rajnishtech did you have a chance to re-build js, css bundles with the correct version of Node.js? Any troubles with that?
Tyler Couto
@onlyanegg
Hi, all. I'm super new to crypto in general. I'm trying to create a blockscout docker image based on the manual instructions at https://docs.blockscout.com/for-developers/manual-deployment
I can't get past this error about being unable to start mnesia
Here's my dockerfile and error on start - https://gist.github.com/onlyanegg/872ac872bedaccca445876c09e48af2d
Has anyone seen this before? Does anyone have an idea as to what could be going wrong?
Tyler Couto
@onlyanegg
I think I have it working now starting from elixir:alpine rather than alpine
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Hi, Blockscout provides sample Dockerfile and Makefile in ./docker folder. Take a look to https://docs.blockscout.com/for-developers/information-and-settings/docker-integration-local-use-only
Tyler Couto
@onlyanegg
Thanks. I did see that. I decided not to use it verbatim for a few reasons. But I think I have it working now anyway :)
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 24 hours and 0 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
bapps
@oreosfly
@vbaranov Hi Victor! Can you tell me where I can find the exact sizes of the logos, please?
As far as I understand, there are 10-15 logos in different formats for different tasks. Thank you .
Sameroom
@sameroom-bot
[Victor Baranov, POA Network] Hi, if you are talking about logo of the chain, that at the header or footer of the application, there are no limitations on the size actually. For instance, here are the logos for POA and xDai instance respectively https://github.com/poanetwork/blockscout/blob/master/apps/block_scout_web/assets/static/images/poa_logo.svg, https://github.com/poanetwork/blockscout/blob/master/apps/block_scout_web/assets/static/images/dai_logo.svg
[Victor Baranov, POA Network] You can find more examples in this folder.