Skip to content

Commit

Permalink
Don't produce lite signature requests [#3603]
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Jun 12, 2024
1 parent 9182737 commit 41f0ead
Show file tree
Hide file tree
Showing 6 changed files with 494 additions and 297 deletions.
26 changes: 5 additions & 21 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
},
// Run
{
"name": "Init (devnet)",
"name": "Run (devnet)",
"presentation": {
"group": "20-Run"
},
Expand All @@ -150,29 +150,13 @@
"mode": "auto",
"program": "${workspaceFolder}/cmd/accumulated",
"args": [
"init",
"devnet",
"-w=${workspaceFolder}/.nodes",
"--reset",
"run", "devnet",
"-w=${workspaceFolder}/.nodes/devnet",
"-b=1",
"-v=1",
"-f=0",
"-s=0",
"--globals={\"executorVersion\": \"v2\"}",
"--faucet-seed=ci",
]
},
{
"name": "Run (devnet)",
"presentation": {
"group": "20-Run"
},
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/accumulated",
"args": [
"${workspaceFolder}/.nodes/devnet",
// "-s=0",
"--globals={\"executorVersion\": \"v2vandenberg\"}",
]
},
{
Expand Down
6 changes: 6 additions & 0 deletions internal/core/execute/v2/block/sig_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,12 @@ func (UserSignature) process(batch *database.Batch, ctx *userSigContext) error {
// sendSignatureRequests sends signature requests so that the transaction
// will appear on the appropriate pending lists.
func (UserSignature) sendSignatureRequests(batch *database.Batch, ctx *userSigContext) error {
// If the signer is a lite identity, do not send a signature request
if _, ok := ctx.signer.(*protocol.LiteIdentity); ok &&
ctx.GetActiveGlobals().ExecutorVersion.V2VandenbergEnabled() {
return nil
}

// If this is the initiator signature
if !ctx.isInitiator {
return nil
Expand Down
Loading

0 comments on commit 41f0ead

Please sign in to comment.