-
Notifications
You must be signed in to change notification settings - Fork 232
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
Comments
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. |
if it doesn't mature, what makes it a 'paper'? maybe it should be called a perpetual annuity until it 'acquires' an expiration date? |
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! |
@masterDev1985 |
@russelldc I'm afraid not. For now, I'm not adding any new features to cp-web. |
@masterDev1985 Regardless of the cp-web project, is there still an issue with chaincode containers indeterminately dying? |
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. |
A timing element needs to be added to this demo to cause funds to transfer between accounts when papers reach their maturity.
The text was updated successfully, but these errors were encountered: