You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the first, I issue a {"command":"subscribe","streams":["ledger"]} to subscribe for updates. I then add those to a queue. A second websocket connection is used to query more details for each ledger, using:
I frequently (about a 1000 times) a day encounter the behavior that the second web socket connection gives me a record that says "closed": false, indeed sometimes with transactions that do not make it. This is despite the fact that the subscribe mechanism explicitly claimed "type":"ledgerClosed".
When I encounter this, I crash and reconnect, upon which time I get the closed ledger information. I have not tried but assume that asking the same websocket again after a delay would also yield the closed ledger.
This occurs with both my own rippled, 0.19.2, and with s1.ripple.com.
This is expected behavior. There is no mechanism that ensures that everyone sees the exact same view of the ledger at the same time. One server may see a ledger as fully-validated while another server still sees that ledger as open. The guarantees are:
If you see a ledger as fully confirmed, that same connection should never tell you otherwise.
If you see a ledger as fully confirmed, every properly-operating server should eventually agree that ledger was fully confirmed.
There are no inter-connection or inter-server synchronization guarantees.
I have two websocket connections to rippled.
In the first, I issue a
{"command":"subscribe","streams":["ledger"]}
to subscribe for updates. I then add those to a queue. A second websocket connection is used to query more details for each ledger, using:I frequently (about a 1000 times) a day encounter the behavior that the second web socket connection gives me a record that says
"closed": false
, indeed sometimes with transactions that do not make it. This is despite the fact that the subscribe mechanism explicitly claimed"type":"ledgerClosed"
.When I encounter this, I crash and reconnect, upon which time I get the closed ledger information. I have not tried but assume that asking the same websocket again after a delay would also yield the closed ledger.
This occurs with both my own rippled, 0.19.2, and with s1.ripple.com.
Was previously reported here: https://ripplelabs.atlassian.net/browse/IN-1
The text was updated successfully, but these errors were encountered: