block-core / blockcore-indexer

Blockcore Indexer scans the blockchain of Blockcore-derived chains and stores transaction information in a MongoDB database with REST API available for Block Explorers to use.
MIT License
21 stars 22 forks source link

syscoin block explorer? #185

Open SIKOo971 opened 1 year ago

SIKOo971 commented 1 year ago

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

SIKOo971 commented 1 year ago

NBitcoin?

SIKOo971 commented 1 year ago

@dangershony @sondreb Brothers I tried to implement a consensus factory, for raven coin. but i couldn't understand exactly. will you please help me out.

SIKOo971 commented 1 year ago

I Tried https://github.com/team-exor/eiquidus, But there sync in MongoDB is very slow.

dangershony commented 1 year ago

Can you share the code?

SIKOo971 commented 1 year ago

Sorry brother dont have the code, actually my co-friend developer tried and reinstall operating system. now my all hopes is you @dangershony

SIKOo971 commented 1 year ago

Hello @dangershony Is there any hope?

dangershony commented 1 year ago

I am pretty busy and I think this task will take a good few days (have to understand how syscoin works) so not in the next few weeks

SIKOo971 commented 1 year ago

I am pretty busy and I think this task will take a good few days (have to understand how syscoin works) so not in the next few weeks

Brother Its Revcoin. Not Syscoin! Syscoin Works Fine.

SIKOo971 commented 1 year ago

@dangershony RAVENCOIN GIVE ME THIS

fail: Blockcore.Indexer.Core.Sync.SyncTasks.BlockPuller[0] TaskRunner-BlockPuller System.AggregateException: One or more errors occurred. (Specified argument was out of the range of valid values. (Parameter 'Array size not big')) ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'Array size not big') at NBitcoin.Protocol.VarString.ReadWrite(BitcoinStream stream) at NBitcoin.BitcoinStream.ReadWrite(Script data) at NBitcoin.BitcoinStream.ReadWrite(Script& script) at Blockcore.Consensus.TransactionInfo.TxIn.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 Blockcore.Consensus.TransactionInfo.Transaction.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 Blockcore.Consensus.BlockInfo.Block.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 /root/blockcore-indexer/src/Blockcore.Indexer.Core/Sync/SyncOperations.cs:line 239 at Blockcore.Indexer.Core.Sync.SyncOperations.FetchFullBlock(SyncConnection connection, BlockInfo block) in /root/blockcore-indexer/src/Blockcore.Indexer.Core/Sync/SyncOperations.cs:line 105 at Blockcore.Indexer.Core.Sync.SyncTasks.BlockPuller.FetchBlockAsync(Int64 tip) in /root/blockcore-indexer/src/Blockcore.Indexer.Core/Sync/SyncTasks/BlockPuller.cs:line 192 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(Task[] tasks) at Blockcore.Indexer.Core.Sync.SyncTasks.BlockPuller.OnExecute() in /root/blockcore-indexer/src/Blockcore.Indexer.Core/Sync/SyncTasks/BlockPuller.cs:line 134

dangershony commented 1 year ago

This is a serialisation error. I am intrigued now... Let me try to look at this, maybe tomorrow.

SIKOo971 commented 1 year ago

ok brother i will wait. thank you @dangershony

SIKOo971 commented 1 year ago

@dangershony Hello Brother, How are you! Have you tried? 5 days back you said to me you will try that day. is there any news?

dangershony commented 1 year ago

No sorry my time is limited, can you share a TRX byte code that was used to get that serialization error? Can you also share the repo where this coins is used?

sondreb commented 1 year ago

The Indexer software parses Blocks and Transactions and if those are in any shape or form different than Bitcoin, then modifications must be done to the indexer software. That's what the consensus factory is used for.

To add support for custom blockchains that are based off Bitcoin, but has been modified, then specification for the Block and/or Transaction format must be known and code modified.

Normally developers from different blockchain teams will provide that development support.