blockcore-indexer icon indicating copy to clipboard operation
blockcore-indexer copied to clipboard

syscoin block explorer?

Open SIKOo971 opened this issue 2 years ago • 64 comments

Hello @sondreb @dangershony Brothers. Can we able to create syscoin block explorer?

SIKOo971 avatar Jan 02 '23 20:01 SIKOo971

We're only supporting Bitcoin-based blockchains. If anyone want to add support and maintain support for other type of blockchains, we'd be more than happy to review and accept pull requests.

sondreb avatar Jan 02 '23 20:01 sondreb

I understand, but for me now! im stuck with this page https://www.blockcore.net/create-chain

SIKOo971 avatar Jan 02 '23 20:01 SIKOo971

I have Cointype, SCRIPT_ADDRESS = 0x5 PUBLIC_KEY_ADDRESS = 0x3f SEGWIT_ADDRESS = sys

Just Trying to understand what other things i need to create, even how i add this config to indexer command like dotnet run --chain=SYS

SIKOo971 avatar Jan 02 '23 20:01 SIKOo971

@sondreb will you help me with configuration. i will try to maintained on my VPS

SIKOo971 avatar Jan 02 '23 20:01 SIKOo971

Ah its a blockcore based coin you are making? are you planning to merge this to the blockcore repo? to have blockcore run an indexer for you it must be merged to our repo.

Just Trying to understand what other things i need to create, even how i add this config to indexer command like dotnet run --chain=SYS

It won't work that way, if you run it yourself you need to override the configuration file in app.settings

dangershony avatar Jan 02 '23 21:01 dangershony

I would suggest you submit a PR to blockcore so we can review what you did

dangershony avatar Jan 02 '23 21:01 dangershony

@dangershony yes it is blockchain based coin. https://coinmarketcap.com/currencies/syscoin/

so how i am locally do this?

SIKOo971 avatar Jan 02 '23 21:01 SIKOo971

i am new learner here, dont know how to put pr

SIKOo971 avatar Jan 02 '23 21:01 SIKOo971

For example. tried to change --Chain=BTC Settings. how i can do locally?

SIKOo971 avatar Jan 02 '23 21:01 SIKOo971

Ah syscoin is an existing blockchain and it seems to be utxo based right?
https://github.com/syscoin/syscoin

It should be possible to create a fullnode for it on blockcore however you can probably also just run a syscoin node and use our explorer. it will be easiest if yo find a syscoin docker hub node and just reference that in the indexer deployment scripts

dangershony avatar Jan 02 '23 21:01 dangershony

or you can create your own docker image here https://github.com/syscoin/docker-syscoind

dangershony avatar Jan 02 '23 21:01 dangershony

Syscoin is the only dual chain UTXO / EVM architecture where all of the following characteristics are working in perfect harmony to comprise the layer 1 protocol.

Seems its like Cirrus the stratis sidechain a UTXO and smart contract meshed together.

dangershony avatar Jan 02 '23 21:01 dangershony

Ok i understand, i created syscoind. but how i use --chain=syc

SIKOo971 avatar Jan 02 '23 21:01 SIKOo971

can you add sys in your blockcore list. so it will be easy for me. because i tried to use custom_btc. but its giving me error.

fail: Blockcore.Indexer.Core.Sync.SyncServer[0]
      Sync
      System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'Array size too big')
         at NBitcoin.BitcoinStream.ReadWriteArray[T](T[]& data)
         at NBitcoin.BitcoinStream.ReadWriteList[TList,TItem](TList& data)
         at NBitcoin.BitcoinStream.ReadWrite[TList,TItem](TList& list)
         at Blockcore.Consensus.BlockInfo.PosTransaction.ReadWrite(BitcoinStream stream)
         at NBitcoin.BitcoinStream.ReadWrite[T](T& data)
         at NBitcoin.BitcoinStream.ReadWriteArray[T](T[]& data)
         at NBitcoin.BitcoinStream.ReadWriteList[TList,TItem](TList& data)
         at NBitcoin.BitcoinStream.ReadWrite[T](List`1& list)
         at Blockcore.Consensus.BlockInfo.Block.ReadWrite(BitcoinStream stream)
         at Blockcore.Consensus.BlockInfo.PosBlock.ReadWrite(BitcoinStream stream)
         at NBitcoin.BitcoinSerializableExtensions.ReadWrite(IBitcoinSerializable serializable, Byte[] bytes, ConsensusFactory consensusFactory)
         at Blockcore.Consensus.BlockInfo.Block.Parse(String hex, ConsensusFactory consensusFactory)
         at Blockcore.Indexer.Core.Sync.SyncOperations.SyncBlockInternal(SyncConnection connection, BlockInfo block) in C:\Users\CRSTUDIO\Downloads\blockcore-indexer-master\blockcore-indexer-master\src\Blockcore.Indexer.Core\Sync\SyncOperations.cs:line 239
         at Blockcore.Indexer.Core.Sync.SyncOperations.FetchFullBlock(SyncConnection connection, BlockInfo block) in C:\Users\CRSTUDIO\Downloads\blockcore-indexer-master\blockcore-indexer-master\src\Blockcore.Indexer.Core\Sync\SyncOperations.cs:line 105
         at Blockcore.Indexer.Core.Sync.SyncTasks.BlockPuller.FetchBlockAsync(Int64 tip) in C:\Users\CRSTUDIO\Downloads\blockcore-indexer-master\blockcore-indexer-master\src\Blockcore.Indexer.Core\Sync\SyncTasks\BlockPuller.cs:line 192

SIKOo971 avatar Jan 02 '23 21:01 SIKOo971

You need to go to this files and make changes there https://github.com/block-core/blockcore-indexer/blob/master/src/Blockcore.Indexer/appsettings.json#L20 https://github.com/block-core/blockcore-indexer/blob/master/src/Blockcore.Indexer/CUSTOM.json

But this is not gonna be so easy because it depends if a syscoin transactions can be serialized with one of our consensus serializers

can you add sys in your blockcore list. so it will be easy for me.

I suppose we can try if I find the time but it might be a big job for a dev to do that

dangershony avatar Jan 02 '23 22:01 dangershony

I will wait, if you can make syscoin indexer. i will see my self too.. but waiting from your side

SIKOo971 avatar Jan 02 '23 22:01 SIKOo971

ok if I find time soon I will try to do it

dangershony avatar Jan 02 '23 22:01 dangershony

sure thank bro @dangershony <3

SIKOo971 avatar Jan 02 '23 22:01 SIKOo971

Hello Brother, @dangershony how are you, is there anything done?

SIKOo971 avatar Jan 03 '23 20:01 SIKOo971

Not yet no, perhaps join our discord and maybe others in the community can help?

dangershony avatar Jan 03 '23 21:01 dangershony

@dangershony I Followed your instructions. and i finally created just changes done in custom.json and it works :) Thanks brother @dangershony

SIKOo971 avatar Jan 03 '23 21:01 SIKOo971

@dangershony Brother, how can we stop sync and RPC connection? and just use the indexer without sync

SIKOo971 avatar Jan 08 '23 16:01 SIKOo971

@dangershony @sondreb Hello Brothers, how are you. guys please help me, i tried to create RVN and my indexer stop sync http://74.208.160.105:9910/ in 1218326 height. and giving me error.

New

SIKOo971 avatar Jan 10 '23 01:01 SIKOo971

This most likely means you are using the wrong consensus factory, the code serializer is failing because there fields it's not expecting.

Is RVN a POS network? Do you need to use a POS consensus factory?

dangershony avatar Jan 10 '23 07:01 dangershony

RVN Is PoW Network. what should i have to do?

SIKOo971 avatar Jan 10 '23 10:01 SIKOo971

You have to find out what are the different fileds that get serialized.

In your indexer settings file what did you set as the consensus factory type?

dangershony avatar Jan 10 '23 10:01 dangershony

i used custom.json and just change the symbol and RPC credentials.

SIKOo971 avatar Jan 10 '23 11:01 SIKOo971

Ok so on the custom I suppose you left this part as is? https://github.com/block-core/blockcore-indexer/blob/master/src/Blockcore.Indexer/CUSTOM.json#L12

Here you probably need to change the factory type to POW, can you try "NetworkConsensusFactoryType": "Blockcore.Consensus.BlockInfo.ConsensusFactory, Blockcore",

dangershony avatar Jan 10 '23 11:01 dangershony

SHould i have to resync? because same issue not starting

SIKOo971 avatar Jan 10 '23 13:01 SIKOo971

Check This Error After Changing NetworkConsensusFactoryType

Capture

SIKOo971 avatar Jan 10 '23 13:01 SIKOo971