Code Monkey home page Code Monkey logo

khoji's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

khoji's Issues

Wrong balance of Verus (VRSCTEST) blockchain

At the moment, the balance of VRSC blockchain doesn't show correct in VRSCTEST network, mostly because of needing to do some extra code conditions which are specific to Verus's DeFi features.

I need help fixing this issue, if anyone can offer that help please.

If you follow the install instructions from the ReadMe file, and start VRSCTEST to sync with the blockchain database, and query balance for some addresses, it will not match with the balance shown in the Verus Desktop or VRSC test explorers for example: https://vrsctest.techloverhd.com/ or https://testex.veruscoin.io/

BOUNTY

I'll be happy to pay bounty if anyone solves this issue.

  • 7500 VRSC to any person who solves this wrong balance issue to show correct balance for VRSCTEST blockchain with DeFi features.
  • 7500 VRSC donation to the Verus Foundations once this issue is solved by anyone.

multi purpose api

Hi, im working on Verus DeFi support for the Wordpress shop payment plugin. Ill be working out the API commands and responses to for example pay with VRSC and the shop auto convert to Veth. or other token on Verus.

Obviously this is similar to the explorer api calls

https://github.com/VerusCoin/VerusPay.

Verus pay uses an inbetween php middleman script to take an api call then pass it it to any compatible daemon. so it can be the basis of a generic API that takes commands from any coin KMD, BTC, ZCASH.. AND ALSO can handle e..g VRSC.Veth . etc.

it also has a pass through mode so if you dont want to use simipfied API calls that get translated into the correct Daemon RPC request. you can use it just for https tunnel . to connect to multiple wallets.

https://github.com/VerusCoin/VerusChainTools/blob/master/index.php

i think i am going to re-write it as it is not readable.

regards

Chris

crash on negative page index

when using a negative page index khoji will crash

How to reproduce:

make GET request on api/v1/identities/-1

error

2022/03/22 00:13:21 Failed to get identities info from DB: rethinkdb: Cannot use a negative left index on a stream. in:
r.DB("vrsctest").Table("identities").OrderBy("blockheight").Slice(-10, 0)
panic: Failed to get identities info from DB: rethinkdb: Cannot use a negative left index on a stream. in:
r.DB("vrsctest").Table("identities").OrderBy("blockheight").Slice(-10, 0)

goroutine 11 [running]:
log.Panicf({0x92c446?, 0x5?}, {0xc0000d17e0?, 0x0?, 0x0?})
        /usr/lib/go-1.18/src/log/log.go:392 +0x67
github.com/Meshbits/khoji/http.getIdentitiesSlice(0xc000284000)
        /root/khoji/http/http_routes.go:314 +0x4f8
github.com/Meshbits/khoji/http.setResponseHeader.func1(0xc000284000)
        /root/khoji/http/http_routes.go:58 +0x5b
github.com/fasthttp/router.(*Router).Handler(0xc00012bc70, 0xc000284000)
        /root/go/pkg/mod/github.com/fasthttp/[email protected]/router.go:414 +0x46a
github.com/valyala/fasthttp.(*Server).serveConn(0xc0000e0fc0, {0x9e47d8?, 0xc000010430})
        /root/go/pkg/mod/github.com/valyala/[email protected]/server.go:2328 +0x12c8
github.com/valyala/fasthttp.(*workerPool).workerFunc(0xc0000bd2c0, 0xc000062960)
        /root/go/pkg/mod/github.com/valyala/[email protected]/workerpool.go:223 +0xa9
github.com/valyala/fasthttp.(*workerPool).getCh.func1()
        /root/go/pkg/mod/github.com/valyala/[email protected]/workerpool.go:195 +0x38
created by github.com/valyala/fasthttp.(*workerPool).getCh
        /root/go/pkg/mod/github.com/valyala/[email protected]/workerpool.go:194 +0x1b0

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.