ergoplatform / ergo

Ergo protocol description & reference client implementation
https://ergoplatform.org/
Creative Commons Zero v1.0 Universal
504 stars 170 forks source link

error when using rpc-endpoint `/wallet/transaction/send` #1860

Open guybrush opened 2 years ago

guybrush commented 2 years ago

Just recently we (flypool) are observing this error at least once every day

curl -X POST "http://ergo:3000/wallet/transaction/send" \
    -H "Content-Type: application/json" \
    -H "api_key: xxx" -d '{ "requests": [ { "address": "xxx", "value": 1 } ], "fee": 1000000 }'

results in

{Error:400 Reason:bad.request Detail:Bad request List(PaymentRequest(xxx,123,List(),Map()), PaymentRequest(2iHkR7CWvD1R4j1yZg5bkeDRQavjAaVPeTDFGGLZduHyfWMuYpmhHocX8GJoaieTx78FntzJbCBVL6rf96ocJoZdmWBL2fci7NqWgAirppPQmZ7fN9V6z13Ay6brPriBKYqLp1bT2Fk4FkFLCfdPpe,1100000,List(),Map())). Failed to sign boxes due to Script reduced to false: Vector(ErgoBox(b3c76fb8a522faeefd658019011c3d235b67706c750b24ebe575a3b76e2af90c,19990156453368,ErgoTree(0,WrappedArray(),Right(ConstantNode(SigmaProp(ProveDlog(ECPoint(9ed28c,1f5728,...))),SSigmaProp)),80,[B@251dc605,Some(false)),tokens: (Coll(0779ec04f2fae64e87418a1ad917639d4668f78484f45df962b0dec14a2591d2:2001,c0bfa5ebb35e9f12d072ed938349d938cb0fd07cb25da7df1de21c9113cb58db:40,04573dbf4b5641f5db042e9ede173d02c1852831cb9697978b268cb145a66b6c:1,09be062ce8394c18a6035f62c81c20d9a76a3e65a05d6636b1c04ac74d9ffa96:1,0cd8c9f416e5b1ca9f986a7f10a84191dfb85941619e49e53c0dc30ebf83324b:10000,d1ae85958e31d24cffde6f09c9d492819fad950dafb76b17…

this is ergo-mainnet-4.0.101

kushti commented 2 years ago

@guybrush do you have custom scans registered ?