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

Add better command to send alerts. #731

Merged
merged 1 commit into from Nov 10, 2017

Conversation

tomasbrod
Copy link
Member

Improved command to send alerts. Fine-grained control of which version sees the alert. Eg: /Nakamoto:3.6.3(317.1999)/ or /Halford:3.6.3.17(0)/.
Example: sendalert2 "--priv-key--" 42 /Nakamoto:3.6.3(0)/,/Nakamoto:3.6.3(317.1999) '' 30 1000 "Sample Text"

std::vector<std::string> split_cancel = split(params[3].get_str(), ",");
for(std::string &s : split_cancel)
{
int aver = RoundFromString(s, 0);
Copy link
Member

Choose a reason for hiding this comment

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

Strange that we don't have a FromString<T> :(

Copy link
Member Author

Choose a reason for hiding this comment

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

I forgot what the new guideline on converting was, so I used the old. Now that it is merged I can't do anything.

Copy link
Member

Choose a reason for hiding this comment

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

Nah, the function does not exist :)

@denravonska denravonska merged commit ceef9bf into gridcoin-community:development Nov 10, 2017
@tomasbrod tomasbrod deleted the alertscmd branch November 10, 2017 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants