mirror of https://github.com/voidlizard/hbs2
refchan head extensions
This commit is contained in:
parent
6e5f25ef93
commit
b2799f156e
|
@ -263,7 +263,7 @@ instance ForRefChans e => FromStringMaybe (RefChanHeadBlock e) where
|
||||||
<*> pure (HashSet.fromList authors)
|
<*> pure (HashSet.fromList authors)
|
||||||
<*> pure (HashSet.fromList readers)
|
<*> pure (HashSet.fromList readers)
|
||||||
<*> pure (HashSet.fromList notifiers)
|
<*> pure (HashSet.fromList notifiers)
|
||||||
<*> pure (LBS.toStrict $ serialise ext)
|
<*> pure (LBS.toStrict ext)
|
||||||
|
|
||||||
where
|
where
|
||||||
parsed = parseTop str & fromRight mempty
|
parsed = parseTop str & fromRight mempty
|
||||||
|
@ -315,6 +315,7 @@ instance (ForRefChans e
|
||||||
lstOf notifier (HashSet.toList $ view refChanHeadNotifiers blk)
|
lstOf notifier (HashSet.toList $ view refChanHeadNotifiers blk)
|
||||||
<>
|
<>
|
||||||
lstOf disclosed_ disclosed
|
lstOf disclosed_ disclosed
|
||||||
|
<> semi <+> parens ("head-ext-number:" <+> pretty (length exs))
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue