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

Int can not be casted to byte in a custom scan #1687

Closed
kushti opened this issue Apr 21, 2022 · 0 comments · Fixed by #1683
Closed

Int can not be casted to byte in a custom scan #1687

kushti opened this issue Apr 21, 2022 · 0 comments · Fixed by #1683

Comments

@kushti
Copy link
Member

kushti commented Apr 21, 2022

For the following scan:

{
  "scanName": "Artworks Tracker",
  "walletInteraction": "off",
  "removeOffchain": false,
  "trackingRule": {
    "predicate": "or",
    "args" : [
      {
        "predicate": "equals",
        "register": "R7",
        "value": "0e020101"
      },
      {
        "predicate": "equals",
        "register": "R7",
        "value": "0e020102"
      },
      {
        "predicate": "equals",
        "register": "R7",
        "value": "0e020103"
      }
    ]
  }
}

When reaching this tx:
https://explorer.ergoplatform.com/en/transactions/8e45aa8812792834b04495be3dcf24d3edbdd2183d82aa8c716bf3659803ffa0
it fails and doesn't proceed the scan.

Error is

node_1  | 00:53:32.007 INFO  [rgoref-api-dispatcher-239] o.e.n.w.ErgoWalletActor - Wallet is going to scan a block 24a0987423cf8b3824bb718a03a189aca11994f38bd7f432b10ec61ad92c4dca in the past at height 10837
node_1  | 00:53:32.029 INFO  [rgoref-api-dispatcher-239] o.e.n.w.ErgoWalletActor - Wallet is going to scan a block f58527e16abf1661d849faf4c21cc3a38cef4e0d8c2194c110839c11ecee82e6 in the past at height 10838
node_1  | 00:53:32.212 INFO  [ctor.default-dispatcher-6] s.c.n.PeerConnectionHandler - Send message MessageSpec(65: Sync) to ConnectionId(remote=/213.239.193.208:9030, local=/192.168.96.2:39650, direction=Outgoing)
node_1  | 00:53:32.212 INFO  [tor.default-dispatcher-13] s.c.n.PeerConnectionHandler - Send message MessageSpec(65: Sync) to ConnectionId(remote=/51.79.229.232:29030, local=/192.168.96.2:47536, direction=Outgoing)
node_1  | 00:53:35.168 INFO  [rgoref-api-dispatcher-239] o.e.n.w.ErgoWalletActor - Wallet actor stopped
node_1  | 00:53:35.256 ERROR [rgoref-api-dispatcher-239] o.e.n.w.ErgoWalletActor - Wallet actor restarted due to class sigmastate.SInt$ cannot be cast to class sigmastate.SByte$ (sigmastate.SInt$ and sigmastate.SByte$ are in unnamed module of loader 'app')
node_1  | java.lang.ClassCastException: class sigmastate.SInt$ cannot be cast to class sigmastate.SByte$ (sigmastate.SInt$ and sigmastate.SByte$ are in unnamed module of loader 'app')
node_1  |  at sigmastate.Values$ByteArrayConstant$.unapply(Values.scala:592)
node_1  |  at org.ergoplatform.nodeView.wallet.scanning.EqualsScanningPredicate.$anonfun$filter$2(ScanningPredicate.scala:65)
node_1  |  at org.ergoplatform.nodeView.wallet.scanning.EqualsScanningPredicate.$anonfun$filter$2$adapted(ScanningPredicate.scala:64)
node_1  |  at scala.Option.exists(Option.scala:376)
node_1  |  at org.ergoplatform.nodeView.wallet.scanning.EqualsScanningPredicate.filter(ScanningPredicate.scala:64)
node_1  |  at org.ergoplatform.nodeView.wallet.scanning.OrScanningPredicate.$anonfun$filter$9(ScanningPredicate.scala:149)
node_1  |  at org.ergoplatform.nodeView.wallet.scanning.OrScanningPredicate.$anonfun$filter$9$adapted(ScanningPredicate.scala:149)
node_1  |  at scala.collection.LinearSeqOptimized.exists(LinearSeqOptimized.scala:95)
node_1  |  at scala.collection.LinearSeqOptimized.exists$(LinearSeqOptimized.scala:92)
node_1  |  at scala.collection.immutable.List.exists(List.scala:89)
node_1  |  at org.ergoplatform.nodeView.wallet.scanning.OrScanningPredicate.filter(ScanningPredicate.scala:149)
node_1  |  at org.ergoplatform.nodeView.wallet.WalletScanLogic$.$anonfun$extractWalletOutputs$2(WalletScanLogic.scala:194)
node_1  |  at org.ergoplatform.nodeView.wallet.WalletScanLogic$.$anonfun$extractWalletOutputs$2$adapted(WalletScanLogic.scala:194)
node_1  |  at scala.collection.TraversableLike.$anonfun$filterImpl$1(TraversableLike.scala:256)
node_1  |  at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
node_1  |  at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
node_1  |  at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
node_1  |  at scala.collection.TraversableLike.filterImpl(TraversableLike.scala:255)
node_1  |  at scala.collection.TraversableLike.filterImpl$(TraversableLike.scala:249)
node_1  |  at scala.collection.AbstractTraversable.filterImpl(Traversable.scala:108)
node_1  |  at scala.collection.TraversableLike.filter(TraversableLike.scala:347)
node_1  |  at scala.collection.TraversableLike.filter$(TraversableLike.scala:347)
node_1  |  at scala.collection.AbstractTraversable.filter(Traversable.scala:108)
node_1  |  at org.ergoplatform.nodeView.wallet.WalletScanLogic$.$anonfun$extractWalletOutputs$1(WalletScanLogic.scala:194)
node_1  |  at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:245)
node_1  |  at scala.collection.Iterator.foreach(Iterator.scala:941)
node_1  |  at scala.collection.Iterator.foreach$(Iterator.scala:941)
node_1  |  at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
node_1  |  at scala.collection.IterableLike.foreach(Iterabl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants