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

"tx_missing_posting_auth" when setting "allow_votes" to false in "comment_option" #395

Open
wehmoen opened this issue Jul 11, 2018 · 0 comments

Comments

@wehmoen
Copy link

wehmoen commented Jul 11, 2018

Expected behavior

When I set allow_votes to false in the comment_options I expect that it is no longer possible to vote on a comment.

Actual behavior

Right now everytime you try this you will receive tx_missing_posting_auth. For a full stack trace check this link: https://pastebin.com/RUzxZABX

How to reproduce

I wrote a small script which uses busys test account guest123 to demonstrate this bug:

let steem = require("steem");
 
let username = 'guest123';
let postingWif = '5JRaypasxMx1L97ZUX7YuC5Psb5EAbF821kkAGtBj7xCJFQcbLg';
let permlink = new Date().toISOString().replace(/[^a-zA-Z0-9]+/g, '').toLowerCase();
 
let commentData = {
    parent_author: '',
    parent_permlink: 'test',
    author: username,
    permlink: permlink,
    title: "test",
    body: "this is a test",
    json_metadata: JSON.stringify({})
};
 
const comment = ['comment', commentData]
 
const commentOptionsData = {
    author: username,
    permlink: permlink,
    allow_votes: false,
    max_accepted_payout: '1000000.000 SBD',
    percent_steem_dollars: 10000,
    allow_curation_rewards: false,
    extensions: []
};
const commentOptions = ['comment_options', commentOptionsData];
 
steem.broadcast.send({operations: [comment, commentOptions]}, {posting: postingWif}, (err, result) => {
    console.log(JSON.stringify(err), result);
});

Environment information

I tested it with the latest version of nodeJS on my Mac (v10.14) and on one of my servers running Ubuntu 16.04

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

No branches or pull requests

1 participant