Refactoring genesis, including PubKey into TxInput

This commit is contained in:
Jae Kwon
2014-12-28 00:44:56 -08:00
parent 70eb75dca7
commit f91665fe07
17 changed files with 308 additions and 178 deletions
+1 -3
View File
@@ -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
+6
View File
@@ -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)
}