revocation: HyperShaChan sounds cooler...
This commit is contained in:
parent
1621b8cc99
commit
69936d694c
@ -8,23 +8,23 @@ type chainFragment struct {
|
|||||||
hash wire.ShaHash
|
hash wire.ShaHash
|
||||||
}
|
}
|
||||||
|
|
||||||
// ShaChain...
|
// HyperShaChain...
|
||||||
type ShaChain struct {
|
type HyperShaChain struct {
|
||||||
lastChainIndex uint64
|
lastChainIndex uint64
|
||||||
|
|
||||||
chainFragments []chainFragment
|
chainFragments []chainFragment
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewShaChain...
|
// NewHyperShaChain...
|
||||||
func NewShaChain(seed wire.ShaHash) *ShaChain {
|
func NewHyperShaChain(seed wire.ShaHash) *HyperShaChain {
|
||||||
// TODO(roasbeef): from/to or static size?
|
// TODO(roasbeef): from/to or static size?
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NextHash...
|
// NextHash...
|
||||||
func (s *ShaChain) NextHash() {
|
func (s *HyperShaChain) NextHash() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetHash...
|
// GetHash...
|
||||||
func (s *ShaChain) GetHash(index uint64) {
|
func (s *HyperShaChain) GetHash(index uint64) {
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type LightningChannel struct {
|
type LightningChannel struct {
|
||||||
shachan *revocation.ShaChain
|
shachan *revocation.HyperShaChain
|
||||||
wallet *LightningWallet
|
wallet *LightningWallet
|
||||||
|
|
||||||
channelEvents *chainntnfs.ChainNotifier
|
channelEvents *chainntnfs.ChainNotifier
|
||||||
|
Loading…
Reference in New Issue
Block a user