How to Set Voting Weight (using Python Script) for Minnows with Less than 500 Steem Power on Steemit?


steemit-voting-power How to Set Voting Weight (using Python Script) for Minnows with Less than 500 Steem Power on Steemit? python SteemIt

steemit-voting-power

It is said that, if you have less than 500 Steem Power, you won’t see this voting weight bar when you upvote.

steemit-voting-power-weight-bar How to Set Voting Weight (using Python Script) for Minnows with Less than 500 Steem Power on Steemit? python SteemIt

steemit-voting-power-weight-bar

It means that each vote is 100%, which you could verify on steemd.

steemit-steemd-1 How to Set Voting Weight (using Python Script) for Minnows with Less than 500 Steem Power on Steemit? python SteemIt

steemit-steemd-1

I write a Python script to verify this:

1
2
3
4
5
6
7
8
9
def vote(id, key, url, score = 100.0):
  wif = {
      "posting": key
  }
  try:
    steem = Steem(keys=wif)    
    return(steem.vote(url, score, id))
  except:
    pass
def vote(id, key, url, score = 100.0):
  wif = {
      "posting": key
  }
  try:
    steem = Steem(keys=wif)    
    return(steem.vote(url, score, id))
  except:
    pass

For example, vote(‘some_id_less_than_500sp’, key, ‘some_url’, 30) is successful even for minnows with less than 500 SP

steemit-steemd-2 How to Set Voting Weight (using Python Script) for Minnows with Less than 500 Steem Power on Steemit? python SteemIt

steemit-steemd-2

Apart from this, I learn that:

If a post or comment has been voted, when you upvote it again:

  • If the voting weight is the same as last time, nothing will happen i.e. nor the blockchain will not accept your vote, neither it will consume your voting power.
  • However, if the voting weight for that post or comment is different, the blockchain will accept this vote, update the voting weight and you will consume the voting power.

You could also enforce a duplicate-upvote-check locally, marking a vote has been done in local file system or database.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def vote(id, key, url, score = 100.0):
  wif = {
      "posting": key
  }
  fn = id + '_' + md5(url) + '_' + str(score) 
  ok = not os.path.isfile(fn)
  if not ok:
    print("voted already: " + fn)  
    return  
  touch(fn)
  try:
    steem = Steem(keys=wif)    
    print("voted: " + fn)
    return(steem.vote(url, score, id))
  except:
    pass
def vote(id, key, url, score = 100.0):
  wif = {
      "posting": key
  }
  fn = id + '_' + md5(url) + '_' + str(score) 
  ok = not os.path.isfile(fn)
  if not ok:
    print("voted already: " + fn)  
    return  
  touch(fn)
  try:
    steem = Steem(keys=wif)    
    print("voted: " + fn)
    return(steem.vote(url, score, id))
  except:
    pass

This actually is 50% of the voting robots such as @randowhale and @minnowbooster where the 50% rest is to listen the transactions of the wallet, make votes and record them in the database (or filesystem).

You may also like: SteemIt Steem Power小于500也可以通过程序来设置点赞百分比

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
509 words
Last Post: SteemSQL Tutorial: How to Get Authors Order By Potential Payout in Last 7 days?
Next Post: Interview Question: What is the difference between List and Dictionary in Python?

The Permanent URL is: How to Set Voting Weight (using Python Script) for Minnows with Less than 500 Steem Power on Steemit?

Leave a Reply