neo-project / neo-node

MIT License
229 stars 224 forks source link

Modify the maximum input length #801

Closed ProDog closed 3 years ago

ProDog commented 3 years ago

Modify paste parameter maximum input length.

shargon commented 3 years ago

What problem it solve? @superboyiii Tested?

superboyiii commented 3 years ago

What problem it solve? @superboyiii Tested?

For example: relay a fulling complete transaction with 11 signatures from council.

Previous (can't input the full tx because of limit):

neo> relay {"type":"Neo.Network.P2P.Payloads.Transaction","data":"AKTv6hJY8h4AAAAAAKwiUwEAAAAA0lEAAAFBO\u002BhSRSuucNKVX2lk7k5Wdr\u002BkOQEAMR8RwB8MEHNldEV4ZWNGZWVGYWN0b3IMFHvGgcCh9x1UNFe2i7qNX5/dTl7MQWJ9W1I=","items":{"0x39a4bf76564eee64695f95d270ae2b4552e83b41":{"script":"GwwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5\u002BHoOeol/YvtbNgua7bmglAYkGX0T/AQwhAzjSoai75eQ8YzNBYTMIaaXgqqUeYTSWGEp8xylL\u002BVafDCEDPY41\u002BM2aM4UigLbZMJPHKS7VzpDZDxSfotpQumFo384MIQI\u002BmzLqiblNBm5kmxJP1Q45bukTaejipq4bEcFw0CIlbQwhA0CNzUFjlvZHg6xYfqHhWTxX2f6ogMimoZIOkqJZR3gGDCEDScfvC0qvGB8KPhNQxSexNsxbQkmMuDq4iAwF7ZUWfhwMIQJWZM7wq8uneHrV\u002BxLzrzHFzcekeQaKoq2O54gEdov/6QwhA1tPm\u002BK4U\u002BButaCcFn4Di5a0gEI1lhUQQjJS8u49u6WDDCEDZQpoRGGmS/Rr7lYdmYGkxXrcbMvTqVErg3AUgLMCGKsMIQJqEKorTXY5xd6vpP8IFGfbELXQBDJ0mipe4dK/7SPhwAwhAn5FmyZLb34yWrSwuw\u002BmQQgftoUX/WE\u002BvXqUy3nTCB5PDCECiMrUQqh3lgx2tPaI9L4w92glbZo9okkrAYC5EkORi08MIQKkDFUnmPeWNglYF\u002ByIkk/Gy3CU5aPLBZqbO8keo78NPQwhAqeDS\u002BmzLimB0VfLW706y0LP0R6lw7ECJNekTpjFkQ8bDCECuixw9ZlvNXpDGYcFhZ\u002BuLP6hPhFyligAdys9WIqdSr0MIQLVeGqSFKij8XV9dZb9EPUkEgXiwNaDYvR2ZXm6xhiSSQwhA9jVjSJXymyxRSK3ZRPUeD99SBgBaViTeUwhhlFcbedvDCEC23nmnFGK6SVOMUtvX0tj6RTN1LJXTcL5I2wBwfwdiXMMIQLsFD8AuIUkyvNqASHC3gnu8FGd2\u002BHHEKAPDiZjIB7kwAAVQZ7Q3Do=","parameters":[{"type":"Signature","value":"CFZkxm0DakZwQ\u002B3/uyPLQspIz1lSNrYRtnWZo6l/bUBzMed6e579BMECZEtM3yplt7Tg8EtdKOaGQuEC5tmI2Q=="},{"type":"Signature","value":"ZiaqEMEK6Z1/ZUdh8G4OLlrUpc5yY15KjnfNXZPCBJdpKY5ntaMFgMDjvYcX8MdBXl9rUqMDns2fZI1IVAxltg=="},{"type":"Signature","value":"uW\u002Bnu5cMTGvN65sydQAN0wetFi2If6Tr3YbIeLUUSZROm4Mz\u002B3iimlBJXw1HV9m5Kgpof678WARH2HgOxCtHoQ=="},{"type":"Signature","value":"/mXUPXp/tI6Y7LhudKzBE8K2soHcPgrr48YLrwgbTI4qypYpOzh\u002BNj03pkAvk8\u002B68kuefevNQb/pjmPRvs80DA=="},{"type":"Signature","value":"RmuTXfPokXWEL9RIM9DqUUsOH8iRMfrKTp6LdhdJ0KBW6rNSEuxxNOpSUMBEW1EE2CNh1c\u002BmElj2Ny3o89SzGQ=="},{"type":"Signature","value":"RB0yPH0\u002BymvBD29D2aNFHSuY3F5nFhCliSgRQ7qO/sqge4z0PcD011qhn3Cf8q\u002BSu6hrZkHIAwSVOPHP08IQTQ=="},{"type":"Signature","value":"QtjYFNpGOOnij\u002BLwNZLOO3fHNoVQas\u002B4\u002BAo6SdvEeP3C12ATXzgPjAZrd5mCDc3KYkce0wwveEuuoYA8mhraUA=="},{"type":"Signature","value":"1VYiT\u002BPe/7syYDSOWaJ1jPyZ6JDPrdU9toDu0Cg9pRQAJW1KLSexiosLA73k7lQeVbq4YuNlWnY7U8CYIQ/ilA=="},{"type":"Signature","value":"uCjuvjGSErAkjc\u002BZDkbpzoSXOb3G2PqeVo/1Mrx/P5ohKxYxC/L61kUDM0Gd8wC6JcoRGhHydBK9eWC8qQ9lqw=="},{"type":"Signature","value":"4iMZ605dgR\u002BGKgw8OOMh2X1gwJ6Whs7oeRugbpiyQL1Dbyx7oH686IYNiR4PCoh05N5BSXr8VrXQX80SK72U9A=="},{"type":"Signature","value":"5\u002BtYZSb5X0QSjLTE8bmVSk5eBR9DQTADoqB3uetxEtOpKQX4BQJC4mIB\u002BTLsRfnNLWnAV8l6SzyJdVxlwcTShA=="}],"signatures":{"0288cad442a877960c76b4f688f4be30f768256d9a3da2492b0180b91243918b4f":"RmuTXfPokXWEL9RIM9DqUUsOH8iRMfrKTp6LdhdJ0KBW6rNSEuxxNOpSUMBEW1EE2CNh1c\u002BmElj2Ny3o89SzGQ==","02a40c552798f79636095817ec88924fc6cb7094e5a3cb059a9b3bc91ea3bf0d3d":"/mXUPXp/tI6Y7LhudKzBE8K2soHcPgrr48YLrwgbTI4qypYpOzh\u002BNj03pkAvk8\u002B68kuefevNQb/pjmPRvs80DA==","02db79e69c518ae9254e314b6f5f4b63e914cdd4b2574dc2f9236c01c1fc1d8973":"ZiaqEMEK6Z1/ZUdh8G4OLlrUpc5yY15KjnfNXZPCBJdpKY5ntaMFgMDjvYcX8MdBXl9rUqMDns2fZI1IVAxltg==","02ec143f00b88524caf36a0121c2de09eef0519ddbe1c710a00f0e2663201ee4c0":"CFZkxm0DakZwQ\u002B3/uyPLQspIz1lSNrYRtnWZo6l/bUBzMed6e579BMECZEtM3yplt7Tg8EtdKOaGQuEC5tmI2Q==","033d8e35f8cd9a33852280b6d93093c7292ed5ce90d90f149fa2da50ba6168dfce":"5\u002BtYZSb5X0QSjLTE8bmVSk5eBR9DQTADoqB3uetxEtOpKQX4BQJC4mIB\u002BTLsRfnNLWnAV8l6SzyJdVxlwcTShA==","0349c7ef0b4aaf181f0a3e1350c527b136cc5b42498cb83ab8880c05ed95167e1c":"4iMZ605dgR\u002BGKgw8OOMh2X1gwJ6Whs7oeRugbpiyQL1Dbyx7oH686IYNiR4PCoh05N5BSXr8VrXQX80SK72U9A==","035b4f9be2b853e06eb5a09c167e038b96b4804235961510423252f2ee3dbba583":"1VYiT\u002BPe/7syYDSOWaJ1jPyZ6JDPrdU9toDu0Cg9pRQAJW1KLSexiosLA73k7lQeVbq4YuNlWnY7U8CYIQ/ilA==","03650a684461a64bf46bee561d9981a4c57adc6ccbd3a9512b83701480b30218ab":"QtjYFNpGOOnij\u002BLwNZLOO3fHNoVQas\u002B4\u002BAo6SdvEeP3C12ATXzgPjAZrd5mCDc3KYkce0wwveEuuoYA8mhraUA==","

Now, rise max limit:

neo> relay {"type":"Neo.Network.P2P.Payloads.Transaction","data":"AKTv6hJY8h4AAAAAAKwiUwEAAAAA0lEAAAFBO\u002BhSRSuucNKVX2lk7k5Wdr\u002BkOQEAMR8RwB8MEHNldEV4ZWNGZWVGYWN0b3IMFHvGgcCh9x1UNFe2i7qNX5/dTl7MQWJ9W1I=","items":{"0x39a4bf76564eee64695f95d270ae2b4552e83b41":{"script":"GwwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5\u002BHoOeol/YvtbNgua7bmglAYkGX0T/AQwhAzjSoai75eQ8YzNBYTMIaaXgqqUeYTSWGEp8xylL\u002BVafDCEDPY41\u002BM2aM4UigLbZMJPHKS7VzpDZDxSfotpQumFo384MIQI\u002BmzLqiblNBm5kmxJP1Q45bukTaejipq4bEcFw0CIlbQwhA0CNzUFjlvZHg6xYfqHhWTxX2f6ogMimoZIOkqJZR3gGDCEDScfvC0qvGB8KPhNQxSexNsxbQkmMuDq4iAwF7ZUWfhwMIQJWZM7wq8uneHrV\u002BxLzrzHFzcekeQaKoq2O54gEdov/6QwhA1tPm\u002BK4U\u002BButaCcFn4Di5a0gEI1lhUQQjJS8u49u6WDDCEDZQpoRGGmS/Rr7lYdmYGkxXrcbMvTqVErg3AUgLMCGKsMIQJqEKorTXY5xd6vpP8IFGfbELXQBDJ0mipe4dK/7SPhwAwhAn5FmyZLb34yWrSwuw\u002BmQQgftoUX/WE\u002BvXqUy3nTCB5PDCECiMrUQqh3lgx2tPaI9L4w92glbZo9okkrAYC5EkORi08MIQKkDFUnmPeWNglYF\u002ByIkk/Gy3CU5aPLBZqbO8keo78NPQwhAqeDS\u002BmzLimB0VfLW706y0LP0R6lw7ECJNekTpjFkQ8bDCECuixw9ZlvNXpDGYcFhZ\u002BuLP6hPhFyligAdys9WIqdSr0MIQLVeGqSFKij8XV9dZb9EPUkEgXiwNaDYvR2ZXm6xhiSSQwhA9jVjSJXymyxRSK3ZRPUeD99SBgBaViTeUwhhlFcbedvDCEC23nmnFGK6SVOMUtvX0tj6RTN1LJXTcL5I2wBwfwdiXMMIQLsFD8AuIUkyvNqASHC3gnu8FGd2\u002BHHEKAPDiZjIB7kwAAVQZ7Q3Do=","parameters":[{"type":"Signature","value":"CFZkxm0DakZwQ\u002B3/uyPLQspIz1lSNrYRtnWZo6l/bUBzMed6e579BMECZEtM3yplt7Tg8EtdKOaGQuEC5tmI2Q=="},{"type":"Signature","value":"ZiaqEMEK6Z1/ZUdh8G4OLlrUpc5yY15KjnfNXZPCBJdpKY5ntaMFgMDjvYcX8MdBXl9rUqMDns2fZI1IVAxltg=="},{"type":"Signature","value":"uW\u002Bnu5cMTGvN65sydQAN0wetFi2If6Tr3YbIeLUUSZROm4Mz\u002B3iimlBJXw1HV9m5Kgpof678WARH2HgOxCtHoQ=="},{"type":"Signature","value":"/mXUPXp/tI6Y7LhudKzBE8K2soHcPgrr48YLrwgbTI4qypYpOzh\u002BNj03pkAvk8\u002B68kuefevNQb/pjmPRvs80DA=="},{"type":"Signature","value":"RmuTXfPokXWEL9RIM9DqUUsOH8iRMfrKTp6LdhdJ0KBW6rNSEuxxNOpSUMBEW1EE2CNh1c\u002BmElj2Ny3o89SzGQ=="},{"type":"Signature","value":"RB0yPH0\u002BymvBD29D2aNFHSuY3F5nFhCliSgRQ7qO/sqge4z0PcD011qhn3Cf8q\u002BSu6hrZkHIAwSVOPHP08IQTQ=="},{"type":"Signature","value":"QtjYFNpGOOnij\u002BLwNZLOO3fHNoVQas\u002B4\u002BAo6SdvEeP3C12ATXzgPjAZrd5mCDc3KYkce0wwveEuuoYA8mhraUA=="},{"type":"Signature","value":"1VYiT\u002BPe/7syYDSOWaJ1jPyZ6JDPrdU9toDu0Cg9pRQAJW1KLSexiosLA73k7lQeVbq4YuNlWnY7U8CYIQ/ilA=="},{"type":"Signature","value":"uCjuvjGSErAkjc\u002BZDkbpzoSXOb3G2PqeVo/1Mrx/P5ohKxYxC/L61kUDM0Gd8wC6JcoRGhHydBK9eWC8qQ9lqw=="},{"type":"Signature","value":"4iMZ605dgR\u002BGKgw8OOMh2X1gwJ6Whs7oeRugbpiyQL1Dbyx7oH686IYNiR4PCoh05N5BSXr8VrXQX80SK72U9A=="},{"type":"Signature","value":"5\u002BtYZSb5X0QSjLTE8bmVSk5eBR9DQTADoqB3uetxEtOpKQX4BQJC4mIB\u002BTLsRfnNLWnAV8l6SzyJdVxlwcTShA=="}],"signatures":{"0288cad442a877960c76b4f688f4be30f768256d9a3da2492b0180b91243918b4f":"RmuTXfPokXWEL9RIM9DqUUsOH8iRMfrKTp6LdhdJ0KBW6rNSEuxxNOpSUMBEW1EE2CNh1c\u002BmElj2Ny3o89SzGQ==","02a40c552798f79636095817ec88924fc6cb7094e5a3cb059a9b3bc91ea3bf0d3d":"/mXUPXp/tI6Y7LhudKzBE8K2soHcPgrr48YLrwgbTI4qypYpOzh\u002BNj03pkAvk8\u002B68kuefevNQb/pjmPRvs80DA==","02db79e69c518ae9254e314b6f5f4b63e914cdd4b2574dc2f9236c01c1fc1d8973":"ZiaqEMEK6Z1/ZUdh8G4OLlrUpc5yY15KjnfNXZPCBJdpKY5ntaMFgMDjvYcX8MdBXl9rUqMDns2fZI1IVAxltg==","02ec143f00b88524caf36a0121c2de09eef0519ddbe1c710a00f0e2663201ee4c0":"CFZkxm0DakZwQ\u002B3/uyPLQspIz1lSNrYRtnWZo6l/bUBzMed6e579BMECZEtM3yplt7Tg8EtdKOaGQuEC5tmI2Q==","033d8e35f8cd9a33852280b6d93093c7292ed5ce90d90f149fa2da50ba6168dfce":"5\u002BtYZSb5X0QSjLTE8bmVSk5eBR9DQTADoqB3uetxEtOpKQX4BQJC4mIB\u002BTLsRfnNLWnAV8l6SzyJdVxlwcTShA==","0349c7ef0b4aaf181f0a3e1350c527b136cc5b42498cb83ab8880c05ed95167e1c":"4iMZ605dgR\u002BGKgw8OOMh2X1gwJ6Whs7oeRugbpiyQL1Dbyx7oH686IYNiR4PCoh05N5BSXr8VrXQX80SK72U9A==","035b4f9be2b853e06eb5a09c167e038b96b4804235961510423252f2ee3dbba583":"1VYiT\u002BPe/7syYDSOWaJ1jPyZ6JDPrdU9toDu0Cg9pRQAJW1KLSexiosLA73k7lQeVbq4YuNlWnY7U8CYIQ/ilA==","03650a684461a64bf46bee561d9981a4c57adc6ccbd3a9512b83701480b30218ab":"QtjYFNpGOOnij\u002BLwNZLOO3fHNoVQas\u002B4\u002BAo6SdvEeP3C12ATXzgPjAZrd5mCDc3KYkce0wwveEuuoYA8mhraUA==","026a10aa2b4d7639c5deafa4ff081467db10b5d00432749a2a5ee1d2bfed23e1c0":"RB0yPH0\u002BymvBD29D2aNFHSuY3F5nFhCliSgRQ7qO/sqge4z0PcD011qhn3Cf8q\u002BSu6hrZkHIAwSVOPHP08IQTQ==","025664cef0abcba7787ad5fb12f3af31c5cdc7a479068aa2ad8ee78804768bffe9":"uCjuvjGSErAkjc\u002BZDkbpzoSXOb3G2PqeVo/1Mrx/P5ohKxYxC/L61kUDM0Gd8wC6JcoRGhHydBK9eWC8qQ9lqw==","02d5786a9214a8a3f1757d7596fd10f5241205e2c0d68362f4766579bac6189249":"uW\u002Bnu5cMTGvN65sydQAN0wetFi2If6Tr3YbIeLUUSZROm4Mz\u002B3iimlBJXw1HV9m5Kgpof678WARH2HgOxCtHoQ=="}}},"network":877933390}

Tested OK.