mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
Refactoring genesis, including PubKey into TxInput
This commit is contained in:
+1
-3
@@ -2,9 +2,7 @@ package common
|
||||
|
||||
import "sync"
|
||||
|
||||
/*
|
||||
CMap is a threadsafe map
|
||||
*/
|
||||
// CMap is a goroutine-safe map
|
||||
type CMap struct {
|
||||
m map[string]interface{}
|
||||
l sync.Mutex
|
||||
|
||||
@@ -2,8 +2,14 @@ package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Panicf(s string, args ...interface{}) {
|
||||
panic(fmt.Sprintf(s, args...))
|
||||
}
|
||||
|
||||
func Exitf(s string, args ...interface{}) {
|
||||
fmt.Printf(s+"\n", args...)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user