Explanation of rt_v_object in RPC?

11 views
Skip to first unread message

JM

unread,
Jun 17, 2016, 3:05:24 PM6/17/16
to twister-dev
Hi,

I was trying to figure out what exactly the
rt_v_object
fav_v_object

rpc items are for newfavmsg and newrtmsg.

I was looking at the code on github (Value newrtmsg () in src/twister.cpp ) and still wasn't clear exactly what the RPC command was looking for in these two:

newfavmsg <username> <k> <fav_v_object> [private=false] [comment=]
newrtmsg <username> <k> <rt_v_object> [comment]

I'd love to have a few tips if anyone can explain it a little bit - English or pseudo-code would be helpful.

Thanks!





JM

unread,
Jun 17, 2016, 5:19:05 PM6/17/16
to twister-dev
Is it just an object with the message to be retransmitted/retwisted?
e.g. something like:
"{"sig_userpost":"1fa07...",
"userpost":{"height":110490,"k":172,"lastk":171,"msg":"messagegoeshere","n":"username","time":1266127384}}"

JM

unread,
Jun 17, 2016, 9:05:47 PM6/17/16
to twister-dev
I think it could be something like this, if anyone else asks the same question:
'"{"sig_userpost":"1fa07...",
"userpost":{"height":110490,"k":172,"lastk":171,"msg":"messagegoeshere","n":"username","time":1266127384}}"'
 
for the
<rt_v_object>

I got a different error now, but think that is the right track.
Reply all
Reply to author
Forward
0 new messages