xeroc / piston-lib

Python Library for Steem
MIT License
40 stars 33 forks source link

Comment Stream returns old comments #50

Closed marvin-bitterlich closed 7 years ago

marvin-bitterlich commented 7 years ago

It seems to me that streeming of comments finds old posts, often multiple days old…

It may be that the stream matches resteems but I could not verify this. Is there a way to filter out resteems?

Netherdrake commented 7 years ago

you mean steem.stream_comments()?

If its streaming old content, while asked to stream head, it means that the node its connected to is lagging behind.

marvin-bitterlich commented 7 years ago

That is really weird then. Because I got posts from 2 days ago using this method… That is lagging way behind!

Netherdrake commented 7 years ago

what is the output of piston config in cli?

marvin-bitterlich commented 7 years ago
 > piston config
+-----+-------+
| Key | Value |
+-----+-------+
+-----+-------+

Only used the lib so far, so this is a fresh install…

Netherdrake commented 7 years ago

try piston set node wss://steemd.steemit.com

marvin-bitterlich commented 7 years ago

I'll report back with how that works!

marvin-bitterlich commented 7 years ago

Still the same thing: I got this post https://steemit.com/fusion360/@lazzelazer/intro-inventor-3d-specialist-gold-prospector-among-other-things-checking-in from yesterday.

Are you sure resteems are filtered out?

ArtGenesis commented 7 years ago

It's because posts, that was edited, add to new block

last_update 2017-06-04 17:35:48 created 2017-06-03 17:18:33

from steem.post import Post
post = Post("@lazzelazer/intro-inventor-3d-specialist-gold-prospector-among-other-things-checking-in")
print(post["created"])
print(post["last_update"])