GolosChain / golos

Socio-economic mediablockchain
https://developers.golos.io
Other
59 stars 36 forks source link

0.17.0 API Bug - get_following method returns data from get_followers #477

Closed Vik-BC closed 6 years ago

Vik-BC commented 6 years ago

@shuler reported a bug https://golos.io/x/@shuler/re-vik-publichnye-nody-api-golos-cf-17-golos-cf-dopolnitelnaya-publichnaya-noda-s-novym-api-ot-goloscore-20180324t233019543z/

Different methods - one result

API WS SEND:  {"id":80,"method":"call","jsonrpc":"2.0","params":["follow","get_following",["vik",0,"blog",5]]}
GOLOSD  OUT:
{ jsonrpc: '2.0',
  result:
   [ { follower: 'kt2', following: 'vik', what: [Array] },
     { follower: 'yea', following: 'vik', what: [Array] },
     { follower: 'uia', following: 'vik', what: [Array] },
     { follower: 'gpa', following: 'vik', what: [Array] },
     { follower: 'yra', following: 'vik', what: [Array] } ],
  id: 80 }
---------------------------------------------------
API WS SEND:  {"id":80,"method":"call","jsonrpc":"2.0","params":["follow","get_followers",["vik",0,"blog",5]]}
GOLOSD  OUT:
{ jsonrpc: '2.0',
  result:
   [ { follower: 'kt2', following: 'vik', what: [Array] },
     { follower: 'yea', following: 'vik', what: [Array] },
     { follower: 'uia', following: 'vik', what: [Array] },
     { follower: 'gpa', following: 'vik', what: [Array] },
     { follower: 'yra', following: 'vik', what: [Array] } ],
  id: 80 }

capture

kotbegemot commented 6 years ago

https://github.com/GolosChain/golos/pull/480