RPC: getrawtransaction and resendtx improvement