Closed reiven closed 8 years ago
Done - change pushed and in commit https://github.com/MultiChain/multichain-explorer/commit/5a71b392681132abf26a502de7c10f2e5ac51557
@bitcartel i've pull the changed from the repo, but still cannot see any "native currency" balance:
On the "address detail" page i see
Address 1BTdpSPMdh8d8Nw3MSg1aobb6Le3sgRgKX Permissions Asset Balances None
But if i check the address balance via JsonAPI i see some balance
s.getaddressbalances('1BTdpSPMdh8d8Nw3MSg1aobb6Le3sgRgKX') [{u'raw': 89090000000, u'qty': 890.9, u'assetref': u''}]
Do you see a column "Raw Units". If not, please upload a screenshot. Thanks.
Uhm no
Stop the Python process, delete the .sqlite file where explorer data is stored (path is found in your explorer .conf file), double-check to see if the config file points to the correct blockchain and then restart the Python process. Does the log output show the blockchain being processed? Can you see the details of assets and their related transactions in the explorer?
Ok, the re-scan of the of the chain will take some time, i'll update this when it finish, but in the meantime i can tell you the explorer is poiting to the correct chain because i can see the transactions and the addresses involved in the transactions. Also if some new transaction are done in the chain, i can see them without any problem.
Ok, the re-scan of the of the chain will take some time, i'll update this when it finish, but in the meantime i can tell you the explorer is poiting to the correct chain because i can see the transactions and the addresses involved in the transactions. Also if some new transaction are done in the chain, i can see them without any problem.
@bitcartel after the network re-scan of the explorer, still none of the address of the network are showind native currency balance in the address page
Can you copy your explorer config file and your multichain params.dat file here? Thanks.
Ok, here is the explorer config removing comments
`dbtype = sqlite3
connect-args = poc.abe.sqlite port 2750 host 0.0.0.0 datadir += [{ "dirname": "~/.multichain/poc", # Path to chain's data folder "loader": "default", # See the comments for default-loader below. "chain": "Multichain Network", # Display name "policy": "MultiChain", "code3":"MMM" # Any 3 letter code for the native currency (if it exists) }]`
And the params.dat
`chain-protocol = multichain # Chain protocol: multichain (permissions, native assets) or bitcoin
chain-description = MultiChain poc # Chain description, embedded in genesis block coinbase, max 256 chars. chain-is-testnet = false # Content of the 'testnet' field of API responses, for compatibility. target-block-time = 15 # Target time between blocks (transaction confirmation delay), seconds. (5 - 86400) maximum-block-size = 1000000 # Maximum block size in bytes. (1000 - 1000000000) anyone-can-connect = false # Anyone can connect, i.e. a publicly readable blockchain. anyone-can-send = true # Anyone can send, i.e. transaction signing not restricted by address. anyone-can-receive = true # Anyone can receive, i.e. transaction outputs not restricted by address. anyone-can-issue = false # Anyone can issue new native assets. anyone-can-mine = false # Anyone can mine blocks (confirm transactions). anyone-can-activate = false # Anyone can grant or revoke connect, send and receive permissions. anyone-can-admin = false # Anyone can grant or revoke all permissions. allow-p2sh-outputs = true # Allow pay-to-scripthash (P2SH) scripts, often used for multisig. allow-multisig-outputs = true # Allow bare multisignature scripts, rarely used but still supported. setup-first-blocks = 60 # Length of initial setup phase in blocks, in which mining-diversity,
mining-diversity = 0.3 # Miners must wait
maximum-per-output = 100000000000000 # Maximum native currency per output, in raw units. (0 - 1000000000000000000)
minimum-relay-fee = 0 # Minimum transaction fee, in raw units of native currency. (0 - 1000000000)
native-currency-multiple = 100000000 # Number of raw units of native currency per display unit. (0 - 1000000000)
skip-pow-check = false # Skip checking whether block hashes demonstrate proof of work.
pow-minimum-bits = 16 # Initial and minimum proof of work difficulty, in leading zero bits. (1 - 32)
target-adjust-freq = 86400 # Interval between proof of work difficulty adjustments, in seconds. (3600 - 4294967295)
allow-min-difficulty-blocks = false # Allow lower difficulty blocks if none after 2_
Hi, thanks for the info, it's been helpful. What version of multichaind and multichain-cli are you running You should see something like "build 1.0 alpha 19 protocol 10005" when you launch the tools on the command-line e.g. multichaind -version
We're using "version" : "1.0 alpha 18", "protocolversion" : 10003
If you upgrade the multichain tools to 1.0 alpha 19 it should work. I believe the issue is related to a RPC parameter used by the explorer which older versions don't support.
If this doesn't work, try creating a new chain with alpha 19 as well as a new explorer config file to point to this chain. Use the latest version of the explorer. There shouldn't be any problems showing the address page. Let me know how things go.
Hi @bitcartel , today i've created a new chain with alpha-23 and latest explorer, transfered some native currency coins and still, on address detail page, no native currency balance was shown
Current version: MultiChain Core Daemon build 1.0 alpha 23 protocol 10005
ping
@reiven Merged. Thanks.
Hi Following with this, reported issue #36 Regards
I recently forked this repository and i was wondering if this is still working? Or how i can activate it?
Hi, on the address detail (ie: /Multichain Network/address/1exampleAddress) you can see the Permissions and Asset Balances of the address, but not the Native Currency balance
It is possible to add it?
Thanks