Skip to content

Commit

Permalink
Copying commits from iteration3 demo: git cherry-pick e10b147..62b8e14
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Nov 28, 2022
1 parent 9bdadb0 commit 3bb02b3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/client/cli/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var (
PromptPrintNodeState,
PromptTriggerNextView,
PromptTogglePacemakerMode,
PromptShowLatestBlockInStore,
// PromptShowLatestBlockInStore,
}
)

Expand Down
2 changes: 1 addition & 1 deletion app/client/cli/doc/commands/client_Account_Send.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ client Account Send <fromAddr> <to> <amount> [flags]

### SEE ALSO

* [client Account](client_Account.md) - Account specific commands
- [client Account](client_Account.md) - Account specific commands

###### Auto generated by spf13/cobra on 9-Nov-2022
7 changes: 7 additions & 0 deletions rpc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ func (s *rpcServer) PostV1ClientBroadcastTxSync(ctx echo.Context) error {
if err != nil {
return ctx.String(http.StatusInternalServerError, err.Error())
}
if err := uCtx.Release(); err != nil {
return ctx.String(http.StatusInternalServerError, err.Error())
}
if err := s.GetBus().GetPersistenceModule().ReleaseWriteContext(); err != nil {
return ctx.String(http.StatusInternalServerError, err.Error())
}

return nil
}

Expand Down
20 changes: 20 additions & 0 deletions shared/debug/proto/events.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
syntax = "proto3";
import "google/protobuf/any.proto";

package pocket;

option go_package = "github.com/pokt-network/pocket/shared/debug";

enum PocketTopic {
UNKNOWN_POCKET_TOPIC = 0;
POCKET_NODE_TOPIC = 1;
CONSENSUS_MESSAGE_TOPIC = 2;
P2P_MESSAGE_TOPIC = 3;
DEBUG_TOPIC = 4;
// UTILITY_TOPIC = 5;
}

message PocketEvent {
PocketTopic topic = 1;
google.protobuf.Any data = 2;
}
2 changes: 1 addition & 1 deletion shared/modules/utility_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type UtilityContext interface {
GetPersistenceContext() PersistenceRWContext

// Validation operations
CheckTransaction(tx []byte) error
CheckTransaction(tx []byte) error // Validates the transaction and adds it to the mempool
}

type UnstakingActor interface {
Expand Down

0 comments on commit 3bb02b3

Please sign in to comment.