channel pair

This commit is contained in:
callebtc
2022-07-09 01:26:08 +02:00
parent 574a0710d5
commit 79e455aa77
2 changed files with 1 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# Attention: This is a yaml file. If you don't use the exact amount of spaces # Trigger warning: This is a yaml file. If you don't use the exact amount of spaces
# precisely where they belong, ghost will haunt you until the end of your life. # precisely where they belong, ghost will haunt you until the end of your life.
# ----- Node credentials ----- # ----- Node credentials -----

View File

@@ -46,7 +46,6 @@ func intToHex(i int64) string {
func parse_channelID(e uint64) string { func parse_channelID(e uint64) string {
byte_e := big.NewInt(int64(e)).Bytes() byte_e := big.NewInt(int64(e)).Bytes()
hexstr := hex.EncodeToString(byte_e) hexstr := hex.EncodeToString(byte_e)
fmt.Println(hexstr)
int_block3, _ := strconv.ParseInt(hexstr[:6], 16, 64) int_block3, _ := strconv.ParseInt(hexstr[:6], 16, 64)
int_block2, _ := strconv.ParseInt(hexstr[6:12], 16, 64) int_block2, _ := strconv.ParseInt(hexstr[6:12], 16, 64)
int_block1, _ := strconv.ParseInt(hexstr[12:], 16, 64) int_block1, _ := strconv.ParseInt(hexstr[12:], 16, 64)