mirror of
https://github.com/corda/corda.git
synced 2025-06-23 09:25:36 +00:00
Fix coin selection with Flow-friendly sleep (#1847)
This commit is contained in:
committed by
Katelyn Baker
parent
76f0fbef8d
commit
310f0daa37
@ -4,12 +4,20 @@ Changelog
|
||||
Here are brief summaries of what's changed between each snapshot release. This includes guidance on how to upgrade code
|
||||
from the previous milestone release.
|
||||
|
||||
UNRELEASED
|
||||
----------
|
||||
.. _changelog_v2:
|
||||
|
||||
Release 2.0
|
||||
-----------
|
||||
|
||||
* ``OpaqueBytes.bytes`` now returns a clone of its underlying ``ByteArray``, and has been redeclared as ``final``.
|
||||
This is a minor change to the public API, but is required to ensure that classes like ``SecureHash`` are immutable.
|
||||
|
||||
* ``FlowLogic`` now has a static method called ``sleep`` which can be used in certain circumstances to help with resolving
|
||||
contention over states in flows. This should be used in place of any other sleep primitive since these are not compatible
|
||||
with flows and their use will be prevented at some point in the future. Pay attention to the warnings and limitations
|
||||
described in the documentation for this method. This helps resolve a bug in ``Cash`` coin selection.
|
||||
A new static property `currentTopLevel` returns the top most `FlowLogic` instance, or null if not in a flow.
|
||||
|
||||
.. _changelog_v1:
|
||||
|
||||
Release 1.0
|
||||
|
Reference in New Issue
Block a user