JUSSI enabled nodes failed to process `network_ broadcast_ api.broadcast_ transaction`.
I accidentally found that JUSSI enabled nodes could not process network_ broadcast_ api.broadcast_ transaction
.
To reproduce:
Step 1
Make an API Call to https://api.hive.blog (JUSSI enabled)
curl -s --data '{"jsonrpc":"2.0", "method":"network_broadcast_api.broadcast_transaction", "params":{"trx":{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[{"type":"vote_operation","value":{"voter":"hiveio","author":"alice","permlink":"a-post-by-alice","weight":10000}}],"extensions":[],"signatures":[]},"max_block_age":50}, "id":1}' https://api.hive.blog
Check the response:
{"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"Internal Error","data":{"error_id":"b39f68b2-729c-4a3d-8c0e-3a55d3ae0559","jussi_request_id":"000136681014195215"}}}
Step 2
Make API Call to https://api.anyx.io (without JUSSI)
curl -s --data '{"jsonrpc":"2.0", "method":"network_broadcast_api.broadcast_transaction", "params":{"trx":{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[{"type":"vote_operation","value":{"voter":"hiveio","author":"alice","permlink":"a-post-by-alice","weight":10000}}],"extensions":[],"signatures":[]},"max_block_age":50}, "id":1}' https://anyx.io
Check the response:
{"error":{"code":-32000,"data":{"code":3030000,"message":"missing required posting authority" ...
Conclusion
We expect the two nodes to return the same information (step 2 is correct), but step 1 returns:"Internal Error".
In my opinion, for an API call, whether or not the node is JUSSI enabled, the result should be consistent. So, I think this may be a BUG of JUSSI.
Notes
condenser_api.broadcast_transaction
works correctly whether the node is JUSSI enabled or not.