Go implementation of the spectrum backend.
octanolabs / go-spectrum Goto Github PK
View Code? Open in Web Editor NEWGo implementation of the spectrum backend.
License: MIT License
Go implementation of the spectrum backend.
License: MIT License
add state diffs.
This is pending a future go-ubiq release. But creating issue for tracking/discussion purposes.
update token transfer logic to new events based model. See spectrum-interface.This will allow shinobi transfers to appear in token transfer properly.
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.
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.
rpc discover currently returns with info.title: "go-ubiq JSON-RPC"
this should be updated to "go-spectrum JSON-RPC"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.