[RPC] Fix for decode rpc (#4064)
[RPC] Fix for decode rpc (#4064)

* Fix for decode rpc

* Updated to use while loop

* removed unused using

stratisproject/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode