after creation of new id counterproposals are sent from wrong id, unless yagna is restarted #3332
Description
scenario:
- yagna id create --password=
0x5d21d008462be4c9179cc9a2a85db0e248226177
- yagna app-key create --id 0x5d21d008462be4c9179cc9a2a85db0e248226177 fiven
40335c3e69714dab9490a45543da7d48
-
yagna payment fund --account 0x5d21d008462be4c9179cc9a2a85db0e248226177 --network holesky
-
yagna id list
┌───────────┬──────────┬──────────────────────┬─────────┬──────────────────────────────────────────────┐
│ default │ locked │ delete in progress │ alias │ address │
├───────────┼──────────┼──────────────────────┼─────────┼──────────────────────────────────────────────┤
│ X │ │ │ │ 0x507eb4dd030f10bfa800f39af682af7f149c106a │
│ │ │ │ │ 0x4a953f8e2b6d39c2f070f7b1c635d2ad7a9af7b8 │
│ │ │ │ │ 0x7359d069145cb4227a887c3acc85589efa535e39 │
│ │ │ │ │ 0x5e0c3c2b0b1a38435098960a08188e4119f6d200 │
│ │ │ │ │ 0x5d21d008462be4c9179cc9a2a85db0e248226177 │
└───────────┴──────────┴──────────────────────┴─────────┴──────────────────────────────────────────────┘ -
yagna app-key list
┌──────────────────┬────────────────────────────────────┬──────────────────────────────────────────────┬───────────┬─────────────────────────────────┐
│ name │ key │ id │ role │ created │
├──────────────────┼────────────────────────────────────┼──────────────────────────────────────────────┼───────────┼─────────────────────────────────┤
│ primary │ 713be7b3253e45c199c6f0c81a7e8946 │ 0x5e0c3c2b0b1a38435098960a08188e4119f6d200 │ manager │ 2024-09-19T09:58:10.599142200 │
│ secondary │ a886a866294d476e8324b64861e83058 │ 0x4a953f8e2b6d39c2f070f7b1c635d2ad7a9af7b8 │ manager │ 2024-09-19T09:58:10.797556200 │
│ tercery │ c69d580792b343b58f0793a0d0bd0f29 │ 0x507eb4dd030f10bfa800f39af682af7f149c106a │ manager │ 2024-09-26T13:32:03.617171300 │
│ cuatro │ 9d351ee4fda74e51899a549e1b264783 │ 0x7359d069145cb4227a887c3acc85589efa535e39 │ manager │ 2024-09-26T13:42:38.770114500 │
│ fiven │ 40335c3e69714dab9490a45543da7d48 │ 0x5d21d008462be4c9179cc9a2a85db0e248226177 │ manager │ 2024-09-26T15:54:51.546423900 │
│ autoconfigured │ try_golem │ 0x507eb4dd030f10bfa800f39af682af7f149c106a │ manager │ 2024-09-26T15:45:55.525722500 │
└──────────────────┴────────────────────────────────────┴──────────────────────────────────────────────┴───────────┴─────────────────────────────────┘
Note: yagna is not restarted at this moment!
- start requestor script (golem-js 3.3) using appkey: 40335c3e69714dab9490a45543da7d48
in SDK logs:
yagna identify: 0x5d21d008462be4c9179cc9a2a85db0e248226177
demand:
[17:57:07.937] DEBUG: Subscribing for proposals matched with the demand {"demand":{"id":"6c7d6fef01e64d4ebe863a4309c929b5-c6bfad0c41ceb43ab4c7b83fecad6b32408ef3be4daaa0d6f338cfd3db78ae35","details":{"prototype":{"properties":[{"key":"golem.srv.caps.multi-activity","value":true},{"key":"golem.node.debug.subnet","value":"jackla"},{"key":"golem.srv.comp.expiration","value":1727368027426},{"key":"golem.srv.comp.vm.package_format","value":"gvmkit-squash"},{"key":"golem.srv.comp.task_package","value":"hash:sha3:fc683c8e1d2d94169c9fcc8c9a884133b28c139592aaf8ac3d68963b:http://registry.golem.network/download/508487ddd7888440b0ade2565a93f29a40dd20fc755d9cea65377f92fe193359"},{"key":"golem.com.scheme.payu.debit-note.interval-sec?","value":15},{"key":"golem.com.scheme.payu.payment-timeout-sec?","value":1200},{"key":"golem.com.payment.debit-notes.accept-timeout?","value":20},{"key":"golem.com.payment.platform.erc20-holesky-tglm.address","value":"0x5d21d008462be4c9179cc9a2a85db0e248226177"},{"key":"golem.com.payment.protocol.version","value":"3"}],"constraints":["(golem.com.pricing.model=linear)","(golem.node.debug.subnet=jackla)","(golem.runtime.name=vm)","(golem.inf.mem.gib>=0.5)","(golem.inf.storage.gib>=2)","(golem.inf.cpu.cores>=1)","(golem.inf.cpu.threads>=1)","(golem.com.payment.platform.erc20-holesky-tglm.address=*)","(golem.com.payment.protocol.version>1)"]},"paymentPlatform":"erc20-holesky-tglm"}}}
Getting the offer and sending counter proposal:
[17:57:08.961] DEBUG: Counter proposal sent {"model":{"properties":{"golem.com.payment.chosen-platform":"erc20-holesky-tglm","golem.com.payment.debit-notes.accept-timeout?":20,"golem.com.payment.platform.erc20-holesky-tglm.address":"0x5d21d008462be4c9179cc9a2a85db0e248226177","golem.com.payment.protocol.version":"3","golem.com.scheme.payu.debit-note.interval-sec?":15,"golem.com.scheme.payu.payment-timeout-sec?":1200,"golem.node.debug.subnet":"jackla","golem.srv.caps.multi-activity":true,"golem.srv.comp.expiration":1727368027426,"golem.srv.comp.task_package":"hash:sha3:fc683c8e1d2d94169c9fcc8c9a884133b28c139592aaf8ac3d68963b:http://registry.golem.network/download/508487ddd7888440b0ade2565a93f29a40dd20fc755d9cea65377f92fe193359","golem.srv.comp.vm.package_format":"gvmkit-squash"},"constraints":"(&(golem.com.pricing.model=linear)\n\t(golem.node.debug.subnet=jackla)\n\t(golem.runtime.name=vm)\n\t(golem.inf.mem.gib>=0.5)\n\t(golem.inf.storage.gib>=2)\n\t(golem.inf.cpu.cores>=1)\n\t(golem.inf.cpu.threads>=1)\n\t(golem.com.payment.platform.erc20-holesky-tglm.address=*)\n\t(golem.com.payment.protocol.version>1))","proposalId":"R-b256e73c4de169795b5cd31341a5dcd684224647f08eff4d1cc7ec59ccc4a4da","issuerId":"0x5d21d008462be4c9179cc9a2a85db0e248226177","state":"Draft","timestamp":"2024-09-26T15:57:08.947723600Z","prevProposalId":"R-647562ddbdd32dab64b80ab8508b82cff8df431f5755573d5d09f1c7abc0d488"},"previousProposalId":"R-647562ddbdd32dab64b80ab8508b82cff8df431f5755573d5d09f1c7abc0d488","id":"R-b256e73c4de169795b5cd31341a5dcd684224647f08eff4d1cc7ec59ccc4a4da","properties":{"golem.com.payment.chosen-platform":"erc20-holesky-tglm","golem.com.payment.debit-notes.accept-timeout?":20,"golem.com.payment.platform.erc20-holesky-tglm.address":"0x5d21d008462be4c9179cc9a2a85db0e248226177","golem.com.payment.protocol.version":"3","golem.com.scheme.payu.debit-note.interval-sec?":15,"golem.com.scheme.payu.payment-timeout-sec?":1200,"golem.node.debug.subnet":"jackla","golem.srv.caps.multi-activity":true,"golem.srv.comp.expiration":1727368027426,"golem.srv.comp.task_package":"hash:sha3:fc683c8e1d2d94169c9fcc8c9a884133b28c139592aaf8ac3d68963b:http://registry.golem.network/download/508487ddd7888440b0ade2565a93f29a40dd20fc755d9cea65377f92fe193359","golem.srv.comp.vm.package_format":"gvmkit-squash"},"issuer":"Requestor"}
but on the provider:
proposal is from 0x5e0c3c2b0b1a38435098960a08188e4119f6d200
and counter proposal is sent to 0x5e0c3c2b0b1a38435098960a08188e4119f6d200
It is not matched so the process hangs.
- After yagna restart:
yagna identity 0x5d21d008462be4c9179cc9a2a85db0e248226177
[18:15:05.969] INFO: Trying to sign an agreement...
[18:15:05.969] DEBUG: Acquiring proposal from draft proposal pool {"draftPoolCounters":{"total":0,"available":0}}
[18:15:05.979] DEBUG: Subscribing for proposals matched with the demand {"demand":{"id":"107cb2ce78a44f578586e6835661d332-311a5079c5085484c7b8def423af51f5803593452b84fcd8e94d388d008a8ba4","details":{"prototype":{"properties":[{"key":"golem.srv.caps.multi-activity","value":true},{"key":"golem.node.debug.subnet","value":"jackla"},{"key":"golem.srv.comp.expiration","value":1727369105580},{"key":"golem.srv.comp.vm.package_format","value":"gvmkit-squash"},{"key":"golem.srv.comp.task_package","value":"hash:sha3:fc683c8e1d2d94169c9fcc8c9a884133b28c139592aaf8ac3d68963b:http://registry.golem.network/download/508487ddd7888440b0ade2565a93f29a40dd20fc755d9cea65377f92fe193359"},{"key":"golem.com.scheme.payu.debit-note.interval-sec?","value":15},{"key":"golem.com.scheme.payu.payment-timeout-sec?","value":1200},{"key":"golem.com.payment.debit-notes.accept-timeout?","value":20},{"key":"golem.com.payment.platform.erc20-holesky-tglm.address","value":"0x5d21d008462be4c9179cc9a2a85db0e248226177"},{"key":"golem.com.payment.protocol.version","value":"3"}],"constraints":["(golem.com.pricing.model=linear)","(golem.node.debug.subnet=jackla)","(golem.runtime.name=vm)","(golem.inf.mem.gib>=0.5)","(golem.inf.storage.gib>=2)","(golem.inf.cpu.cores>=1)","(golem.inf.cpu.threads>=1)","(golem.com.payment.platform.erc20-holesky-tglm.address=*)","(golem.com.payment.protocol.version>1)"]},"paymentPlatform":"erc20-holesky-tglm"}}}
proposal is from 0x5d21d008462be4c9179cc9a2a85db0e248226177
on provider is seen as received from 0x5d21d008462be4c9179cc9a2a85db0e248226177
counter proposal is sent back to 0x5d21d008462be4c9179cc9a2a85db0e248226177
and process continues.