Add sha256 announcement/event ids on oracleServer 'getevent' for use in UI (#3673)

This commit is contained in:
user411 2021-09-17 11:32:01 -06:00 committed by GitHub
parent 11c3626fac
commit 27d4c09d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 =>