mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
898 stars 198 forks source link

Add read locks to the Lua runner #260

Open maurermi opened 5 months ago

maurermi commented 5 months ago

This PR adds support for requesting read locks from Lua contracts. Now values yielded from contracts can include an optional second integer parameter (0 = read, else = write).

HalosGhost commented 5 months ago

CC @ayeshaali

maurermi commented 2 months ago

Update: Responded to comments from @eolesinski, additionally caught an error from testing in scripts/gen_bytecode.lua, and rebased onto trunk