Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra Json array in active Lease API #85

Open
ncying opened this issue Jun 19, 2019 · 1 comment
Open

Extra Json array in active Lease API #85

ncying opened this issue Jun 19, 2019 · 1 comment
Labels
question Further information is requested

Comments

@ncying
Copy link
Member

ncying commented Jun 19, 2019

complete(Json.arr(JsArray(state.activeLeases().flatMap(state.transactionInfo)
.map(a => (a._1,a._2,a._2.transaction))
.collect{
case (h:Int, tx:ProcessedTransaction, lt:LeaseTransaction)
if EllipticCurve25519Proof.fromBytes(lt.proofs.proofs.head.bytes.arr).toOption.get.publicKey.address == address
|| state.resolveAliasEi(lt.recipient).toOption.get.address == address =>
processedTxToExtendedJson(tx) + ("height" -> JsNumber(h))
}
)))

@faddat faddat added the question Further information is requested label Apr 10, 2020
@faddat
Copy link
Contributor

faddat commented Apr 10, 2020

Can you please provide a more information here?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants