File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package consensus
3
3
import (
4
4
"bytes"
5
5
"context"
6
+ "encoding/hex"
6
7
"errors"
7
8
"fmt"
8
9
"io"
@@ -2368,6 +2369,7 @@ func (cs *State) signVote(
2368
2369
) (* types.Vote , error ) {
2369
2370
// Flush the WAL. Otherwise, we may not recompute the same vote to sign,
2370
2371
// and the privValidator will refuse to sign anything.
2372
+ fmt .Printf ("signVote: hash: %v\n " , hex .EncodeToString (hash ))
2371
2373
if err := cs .wal .FlushAndSync (); err != nil {
2372
2374
return nil , err
2373
2375
}
Original file line number Diff line number Diff line change 5
5
"encoding/hex"
6
6
"errors"
7
7
"fmt"
8
+ "runtime/debug"
8
9
"strings"
9
10
"time"
10
11
@@ -476,6 +477,7 @@ func (h *Header) Hash() cmtbytes.HexBytes {
476
477
return nil
477
478
}
478
479
fmt .Printf ("h.ImplicitHash: %X\n " , hex .EncodeToString (h .ImplicitHash ))
480
+ debug .PrintStack ()
479
481
480
482
merkleHash1 := merkle .HashFromByteSlices ([][]byte {
481
483
hbz ,
Original file line number Diff line number Diff line change 4
4
"bytes"
5
5
"errors"
6
6
"fmt"
7
+ "runtime/debug"
7
8
"time"
8
9
9
10
"github.com/cometbft/cometbft/crypto"
@@ -146,6 +147,10 @@ func (vote *Vote) ExtendedCommitSig() ExtendedCommitSig {
146
147
//
147
148
// See CanonicalizeVote
148
149
func VoteSignBytes (chainID string , vote * cmtproto.Vote ) []byte {
150
+ fmt .Printf ("----------------debugStack for VoteSignBytes ---------------\n " )
151
+ debug .PrintStack ()
152
+ fmt .Printf ("VoteSignBytes: %v\n " , vote )
153
+ fmt .Printf ("vote.BlockID: %v\n " , vote .BlockID )
149
154
pb := CanonicalizeVote (chainID , vote )
150
155
bz , err := protoio .MarshalDelimited (& pb )
151
156
if err != nil {
You can’t perform that action at this time.
0 commit comments