Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arcalinea/simplechain
/ functions
Functions
57 in github.com/arcalinea/simplechain
⨍
Functions
57
◇
Types & classes
11
↓ 7 callers
Method
GetCid
()
block.go:38
↓ 7 callers
Method
Serialize
()
block.go:21
↓ 4 callers
Method
GetTxid
()
transaction.go:80
↓ 3 callers
Method
AddBlock
(blk *Block)
blockchain.go:171
↓ 3 callers
Function
Call
(cmd string, options map[string]string, out interface{})
cli/cli.go:75
↓ 3 callers
Method
GetHash
()
block.go:47
↓ 2 callers
Method
CreateNewBlock
()
node.go:121
↓ 2 callers
Function
LoadBlock
(bs bserv.BlockService, c *cid.Cid)
blockchain.go:77
↓ 2 callers
Function
NewMerkleNode
(left *MerkleNode, right *MerkleNode, tx *Transaction)
transaction.go:26
↓ 2 callers
Function
PutBlock
(bs bserv.BlockService, blk *Block)
blockchain.go:94
↓ 2 callers
Method
Serialize
()
transaction.go:63
↓ 2 callers
Function
ToAddress
(pubkey ecdsa.PublicKey)
wallet.go:30
↓ 2 callers
Method
ValidateBlock
Check that prevHash of new block is equal to hash of chainTip Transactions validate Time is greater than time of chainTip
blockchain.go:130
↓ 2 callers
Function
newKey
()
wallet.go:22
↓ 1 callers
Method
AddTx
(tx *Transaction)
mempool.go:13
↓ 1 callers
Method
BroadcastBlock
(block *Block)
node.go:130
↓ 1 callers
Function
CreateGenesisBlock
()
blockchain.go:110
↓ 1 callers
Function
CreateNewNode
(ctx context.Context)
node.go:27
↓ 1 callers
Function
DeserializeBlock
(buf []byte)
block.go:29
↓ 1 callers
Function
DeserializeTx
(buf []byte)
transaction.go:71
↓ 1 callers
Method
FindSolsHash
(c chan *Block)
miner.go:47
↓ 1 callers
Method
GetInfo
()
node.go:158
↓ 1 callers
Method
GetNewAddress
()
node.go:135
↓ 1 callers
Method
GetTxidString
()
transaction.go:85
↓ 1 callers
Method
ListenBlocks
(ctx context.Context)
node.go:74
↓ 1 callers
Method
ListenTransactions
(ctx context.Context)
node.go:100
↓ 1 callers
Method
Mine
(c chan *Block)
miner.go:17
↓ 1 callers
Function
NewBlockchain
(h host.Host)
blockchain.go:40
↓ 1 callers
Function
NewMempool
()
mempool.go:7
↓ 1 callers
Function
NewWallet
()
wallet.go:16
↓ 1 callers
Method
SelectTransactions
()
mempool.go:25
↓ 1 callers
Method
SendTransaction
(tx *Transaction)
node.go:142
↓ 1 callers
Method
StartMiner
()
miner.go:12
↓ 1 callers
Function
getMessageFromNetwork
(buf *[]byte)
blockchain_test.go:56
↓ 1 callers
Method
hasKey
(addr string)
wallet.go:44
↓ 1 callers
Function
isWinner
(ticket string)
miner.go:37
↓ 1 callers
Method
removeTxs
(txs []Transaction)
mempool.go:18
↓ 1 callers
Method
reorg
(oldBlock *Block, newBlock *Block)
blockchain.go:151
↓ 1 callers
Function
takesBar
(b **Block)
blockchain_test.go:41
↓ 1 callers
Function
validateTransactions
(txs []Transaction)
blockchain.go:122
Function
BuildTxMerkleTree
(txs []*Transaction)
transaction.go:43
Function
FindSolsTimeout
(c chan string)
miner.go:27
Method
GetChainTip
()
blockchain.go:118
Function
GetInfo
(c *cli.Context)
cli/cli.go:61
Function
GetNewAddress
(c *cli.Context)
cli/cli.go:47
Method
GetNewAddress
()
wallet.go:37
Function
SendTx
sendtx you 100 -from=me -memo=hi
cli/cli.go:17
Method
SyncChain
(from *Block)
blockchain.go:189
Function
TestAddBlock
(t *testing.T)
blockchain_test.go:26
Function
TestHashBlock
(t* testing.T)
block_test.go:8
Function
TestMemory
(t *testing.T)
blockchain_test.go:48
Function
TestPointers
(t *testing.T)
blockchain_test.go:35
Function
TestToAddress
(t *testing.T)
wallet_test.go:8
Function
TestValidateBlock
(t *testing.T)
blockchain_test.go:18
Function
init
()
blockchain.go:33
Function
main
()
main.go:11
Function
main
()
cli/cli.go:94