Pocket confirmer bots: bug fixed; please upgrade to latest code now!

in #pocket6 years ago


(If you are not running a confirmer bot, feel free to ignore this message! Keep using Pocket as you always have!)

Today Pocket gave me a chance to prove that I'm still around and still paying attention to the protocol. About a day ago, it appears that all of the confirmation bots except for @kata got stuck at a particular block. There is a method in the Steem Python library called get_replies() that inexplicably stopped working. The code needs this method to look for confirmation messages to pocketsend commands, and without it, all bots just hung. Except @kata. My suspicion is that the method doesn't fail if a pocketsend has no replies, and @kata just happened to be the first one past the gate when the bug turned up.

In any case, once I found the problem I fixed it quite easily by simply using a lower-level method to query the necessary replies. I've merged the changes into all branches, so whichever you are using should be good to go. Cheers!

As always, if you need a Bitshares account so you can trade POCKET IOU tokens issued by @virtualgrowth, you can sign up for Bitshares using this link.

For more information

Sort:  

Surprising. Than bot did stuck I've updated python-steem to the new url https://api.steemit.com. It worked. I was thinking that RPC server uri change was causing this.

Anyway, I'll update the code. Thank you for staying around!

I run my own steemd node, and my bot got stuck too. So I don't know. Right, I need to update the urls in the default config file too.

It is nice that python-steem updated too. It will fix problem from both ends.

By the way, what version number do you have of python-steem?

I've pulled version with latest commit 6467801565be992140a1234ea9a4987aa6fd71ee (did not find the actual version number there)

I did the same only earlier today and bot started to process blocks - and I am still running version without this fix. Before this change I've got a lot of errors:

2018-01-10 18:20:48,615 DEBUG root Switched node to steemd.steemit.com due to exception: MaxRetryError

so I also assumed that this is connected with killing of steemd.steemit.com.

What is worth mentioning, I had to change steemd.steemit.com to api.steemit.com in steem-python code (setting any nodes in configuration file did not fixed anything). Nevertheless I will also try to update to newer version tonight.

Right, that makes sense. I wonder why my local steemd was having the problem too. Weird.

In any case, I need to do a comprehensive upgrade to get it compatible with the official steem-python.

pocketsend:2@biophil, just finished updating, checking.

Successful Send of 2
Sending Account: kata
Receiving Account: biophil
New sending account balance: 76
New receiving account balance: 828172
Fee: 1
Steem trxid: 9a9ac171bf36c3b5f31b776656eb3a9498cad214
Thanks for using POCKET! I am running this confirmer code.

looks like @pocket-pi is working now too.

...and now is running the latest develop branch code too. :-) Regards.

Successful Send of 2
Sending Account: kata
Receiving Account: biophil
New sending account balance: 76
New receiving account balance: 828172
Fee: 1
Steem trxid: 9a9ac171bf36c3b5f31b776656eb3a9498cad214
Thanks for using POCKET! I am small bot and right now I am running this code.

pocketsend:1@pocket-pi, test

Successful Send of 1
Sending Account: pocket-pi
Receiving Account: pocket-pi
New sending account balance: 141807
New receiving account balance: 141807
Fee: 1
Steem trxid: 3d190ebc974b4e4e8bc8120660628cc8066b8544
Thanks for using POCKET! I am small bot and right now I am running this code.

Successful Send of 1
Sending Account: pocket-pi
Receiving Account: pocket-pi
New sending account balance: 141807
New receiving account balance: 141807
Fee: 1
Steem trxid: 3d190ebc974b4e4e8bc8120660628cc8066b8544
Thanks for using POCKET! I am running this confirmer code.

Thanks! You're right, flagged.

pocketsend:1@biophil

Successful Send of 1
Sending Account: biophil
Receiving Account: biophil
New sending account balance: 828120
New receiving account balance: 828120
Fee: 1
Steem trxid: 732128f75c91665da6aa0d562d1cc1dd0f185f6f
Thanks for using POCKET! I am running this confirmer code.

Successful Send of 1
Sending Account: biophil
Receiving Account: biophil
New sending account balance: 828120
New receiving account balance: 828120
Fee: 1
Steem trxid: 732128f75c91665da6aa0d562d1cc1dd0f185f6f
Thanks for using POCKET! I am a confirmer bot for fun, view my source confirmer code here. Don't know what a POCKET Token is? Here is a link to the official announcement post.

I think somebody once sent me some pocket...

how do i know if I have pocket... if I sound confused, that's because I am.

pocketsend:1@fraenk, just send one to yourself like this and a bot will reply if your have some.

Successful Send of 1
Sending Account: biophil
Receiving Account: fraenk
New sending account balance: 828122
New receiving account balance: 100
Fee: 1
Steem trxid: 37d414f7f5976a084b1afc04625be9d7992af3cb
Thanks for using POCKET! I am running this confirmer code.

pocketsend:1@fraenk, this is a test

Successful Send of 1
Sending Account: fraenk
Receiving Account: fraenk
New sending account balance: 99
New receiving account balance: 99
Fee: 1
Steem trxid: 9053db4ff109b3268a8e2dd4fd9abd680260208a
Thanks for using POCKET! I am running this confirmer code.

ok... I get it now! Thanks for helping me be less confused!

is there a solution to the solution earlier?

Folow me pliss

Folow me pliis

This is very useful information, many thanks have told us.

it turns out after study and I share this post I will try to register to betshare.

Wow.. Thanks for sharing this. Nice one

Very interesting post!
Very interesting to see.

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 64107.66
ETH 3148.40
USDT 1.00
SBD 3.84