Giter Club home page Giter Club logo

go-spectrum's Introduction

go-spectrum

Go implementation of the spectrum backend.

go-spectrum's People

Contributors

dependabot-preview[bot] avatar iquidus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

go-spectrum's Issues

state diffs

add state diffs.

This is pending a future go-ubiq release. But creating issue for tracking/discussion purposes.

update token transfer logic

update token transfer logic to new events based model. See spectrum-interface.This will allow shinobi transfers to appear in token transfer properly.

refactor mongo schemas

some refactoring of schemas could potentially improve performance.

for example, adding txn trace to the txn itself (even if duplicated).
adding txns in full to blocks (even if duplicated)

approach from a query perspective. minimize queries even if it requires duplicating data in mongo, storage is a cheap price to pay for faster responses/load times.

couldn't add trace to db

ERROR[04-27|15:33:51.510] aborted sync 
ERROR[04-27|15:33:58.485] couldn't add trace to db                 err="multiple write errors: [{write errors: [{E11000 duplicate key error collection: ubiqscandb.internaltxns index: txHashIndex dup key: { hash: \"0xa5828b1371157b8e8b5d642433b35b72ff5d5da276ac8cba3eada62817dda5ea\" }}]}, {<nil>}]"

If go-spectrum doesnt exit cleanly upon restart it can find itself stuck in a loop, unable to sync due to duplicate keys.

Removing the document in question restores functionality.

e.g

db.internaltxns.deleteOne({"hash":"0xa5828b1371157b8e8b5d642433b35b72ff5d5da276ac8cba3eada62817dda5ea"})

removing the original, allowing for the new to be added.

update openrpc document title

rpc discover currently returns with info.title: "go-ubiq JSON-RPC" this should be updated to "go-spectrum JSON-RPC"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.