Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paper doesn't mature. #3

Open
masterDev1985 opened this issue Apr 1, 2016 · 7 comments
Open

Paper doesn't mature. #3

masterDev1985 opened this issue Apr 1, 2016 · 7 comments

Comments

@masterDev1985
Copy link
Contributor

A timing element needs to be added to this demo to cause funds to transfer between accounts when papers reach their maturity.

@masterDev1985
Copy link
Contributor Author

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.

@gregmisiorek
Copy link

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

@masterDev1985
Copy link
Contributor Author

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!

@russelldc
Copy link

@masterDev1985
Has there been any headway in this direction?

@masterDev1985 masterDev1985 added wontfix and removed bug labels Feb 7, 2017
@masterDev1985
Copy link
Contributor Author

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

@russelldc
Copy link

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

@masterDev1985
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants