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

Implement ixnotify #747

Closed
wants to merge 1 commit into from
Closed

Implement ixnotify #747

wants to merge 1 commit into from

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Mar 22, 2016

Execute command when a wallet IX transaction is successfully locked (%s in cmd is replaced by TxID)

if ( !strCmd.empty())
{
boost::replace_all(strCmd, "%s", ctx.txHash.GetHex());
boost::thread t(runCommand, strCmd); // thread runs free

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From experience, there's oddness if this runs from any other thread than init.cpp. Have you tested it? You should try sleeping for a minute in a target script, I think it will halt the daemon.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will try smth like that, thanks

@eduffield222
Copy link

This is fancy! Great idea. We could use this for applications like the vending machine .

@UdjinM6
Copy link
Author

UdjinM6 commented Mar 24, 2016

closing this in favor of #749

@UdjinM6 UdjinM6 closed this Mar 24, 2016
@UdjinM6 UdjinM6 deleted the ixnotify branch April 16, 2016 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants