namereg event

This commit is contained in:
Ethan Buchman
2015-08-02 22:29:35 -04:00
parent bff06ac657
commit 9b69894180
6 changed files with 67 additions and 9 deletions
+4
View File
@@ -26,6 +26,10 @@ func EventStringPermissions(name string) string {
return fmt.Sprintf("Permissions/%s", name)
}
func EventStringNameReg(name string) string {
return fmt.Sprintf("NameReg/%s", name)
}
func EventStringBond() string {
return "Bond"
}
+3
View File
@@ -7,6 +7,9 @@ import (
var (
MinNameRegistrationPeriod int = 5
// NOTE: base costs and validity checks are here so clients
// can use them without importing state
// cost for storing a name for a block is
// CostPerBlock*CostPerByte*(len(data) + 32)
NameCostPerByte int64 = 1