Increase contract data key size back to 300 bytes #1485
Replies: 1 comment 5 replies
-
Just to add some context here: 300 bytes has been picked as an arbitrary (small) limit. After getting some usage on futurenet/testnet, we've observed that keys stay below 200 bytes and decided to launch protocol 20 with a more conservative restriction of 200 bytes. Probably your transaction has slipped in the time between the evaluation and the actual update. I'm not sure if a straight up 1.5x increase is feasible; the key size is a pretty performance-sensitive restriction. @SirTyson could maybe comment on this. We could make a vote for a small (say, 10% increase) happen, but I'm sure someone else will hit the increased limit eventually. It might be a good idea to try reducing the key size (e.g. use a |
Beta Was this translation helpful? Give feedback.
-
On Feb 20 this size was reduced from 300 bytes to 200 bytes (testnet) and it finally arrived in 200 bytes to mainnet with protocol 20. I was testing one of my protocols in futurenet and testnet without issues until Feb 12th when I started to prepare the code for the audit before launching on mainnet, at that moment I stopped testing on testnet during the whole period so I missed that change.
Yesterday with the final version of the audit I went to test again on testnet and I found out that none of my contract calls worked correctly, at first I thought it was related to protocol 21 but @leighmcculloch found that the reason was that one of the keys in the footprint was out of the current limits of the network (this key is 212 bytes).
Here is an example of a tx and its working simulation, and also the error response from the network after the simulation is sent: https://runkit.com/earrietadev/65e1626ece86f100080c2fb5 (the diagnostic says
transaction footprint key exceeds network config limit
)And here is a similar tx made on Feb 12th: https://horizon-testnet.stellar.org/transactions/1b1c979ce7026886dd22d792dd2b4ef29dc46b788db379063253eeef9881666f
This is a blocker, so I would like to know if increasing this value to what it was before could be possible or at least if is something that is expected to grow in the future.
Related discussion on Discord:
Beta Was this translation helpful? Give feedback.
All reactions