GithubHelp home page GithubHelp logo

Comments (7)

masterDev1985 avatar masterDev1985 commented on September 3, 2024

Currently, we can't rely on chaincode to handle checking these trades and processing transfers on maturation dates. This is because chaincode containers can die on the network. Peers will just bring them back up whenever the next invoke or query comes up, but this is a game-over for letting chaincode handle maturation. I'm thinking we could just have the web app send a query to the chaincode every minute or so, calling a function that runs through all the trades and processes any that have matured.

from cp-web.

gregmisiorek avatar gregmisiorek commented on September 3, 2024

if it doesn't mature, what makes it a 'paper'? maybe it should be called a perpetual annuity until it 'acquires' an expiration date?

from cp-web.

masterDev1985 avatar masterDev1985 commented on September 3, 2024

There are other issues I'm currently working on, but I do intend to implement this functionality, eventually. I don't want to discourage the community from helping, however. If anyone has an idea for how to implement this, we'd love to see it!

from cp-web.

russelldc avatar russelldc commented on September 3, 2024

@masterDev1985
Has there been any headway in this direction?

from cp-web.

masterDev1985 avatar masterDev1985 commented on September 3, 2024

@russelldc I'm afraid not. For now, I'm not adding any new features to cp-web.

from cp-web.

russelldc avatar russelldc commented on September 3, 2024

@masterDev1985 Regardless of the cp-web project, is there still an issue with chaincode containers indeterminately dying?

from cp-web.

masterDev1985 avatar masterDev1985 commented on September 3, 2024

Well, chaincode containers dying shouldn't be an issue. Whenever the peer needs chaincode, it should start or recreate the chaincode container from the image.

from cp-web.

Related Issues (20)

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.