mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Add sha256 announcement/event ids on oracleServer 'getevent' for use in UI (#3673)
This commit is contained in:
parent
11c3626fac
commit
27d4c09d37
@ -173,7 +173,10 @@ case class OracleRoutes(oracle: DLCOracleApi)(implicit
|
||||
"announcementTLV" -> Str(event.announcementTLV.hex),
|
||||
"attestations" -> attestationJson,
|
||||
"outcomes" -> outcomesJson,
|
||||
"signedOutcome" -> signedOutcomeJs
|
||||
"signedOutcome" -> signedOutcomeJs,
|
||||
// TLV shas for UI to have ids
|
||||
"announcementTLVsha256" -> event.announcementTLV.sha256.hex,
|
||||
"eventDescriptorTLVsha256" -> event.eventDescriptorTLV.sha256.hex
|
||||
)
|
||||
Server.httpSuccess(json)
|
||||
case None =>
|
||||
|
Loading…
Reference in New Issue
Block a user