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 17, 2024
1 parent 1b25ea9 commit 575501b
Show file tree
Hide file tree
Showing 8 changed files with 515 additions and 279 deletions.
4 changes: 3 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@
"args": [
"run", "devnet",
"-w=${workspaceFolder}/.nodes/devnet",
"-b=2",
"-b=1",
"-v=1",
"-f=0",
// "-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 575501b

Please sign in to comment.