corda / accounts

Accounts on Corda
Other
36 stars 38 forks source link

RequestAccountInfoFlow not receiving expecting Boolean value from counter-party #23

Closed HaoLiu1987 closed 5 years ago

HaoLiu1987 commented 5 years ago

In the RequestAccountInfoFlow, there is a party where the current node is asking the counter-party whether a specific account exist on the counter-party's node by: val hasAccount = host.sendAndReceive<Boolean>(id).unwrap { it } Here it is waiting for a Boolean value as response.

However, in the RequestAccountInfoHandlerFlow, if the specified account does exist (i.e. response != null), the counter-party does not response with a Boolean value. Instead, it will response with the transaction the contains the specified account info.

This will cause an error when requesting an account that exist on the counter-party.

roger-that-dev commented 5 years ago

Thanks @HaoLiu1987 - I've fixed this now. The fix is in master. A new Release candidate will be published today with this fix.

roger-that-dev commented 5 years ago

See commit here: https://github.com/corda/accounts/pull/41/commits/f0786f349e643f0e3b23483e28eb37ae5639d2a7

HaoLiu1987 commented 5 years ago

I noticed the fix several days ago. Keep up the good work!