forked from TrueCloudLab/neoneo-go
e2187c0a96
Removed Neo.Block.GetTransaction and System.Block.GetTransaction interops. These interops were replaced by new System.Blockchain.GetTransactionFromBlock interop.
24 lines
873 B
Go
24 lines
873 B
Go
/*
|
|
Package block provides getters for Neo Block structure.
|
|
*/
|
|
package block
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/interop/blockchain"
|
|
|
|
// Block represents a NEO block, it's an opaque data structure that you can get
|
|
// data from only using functions from this package. It's similar in function to
|
|
// the Block class in the Neo .net framework. To use it you need to get it via
|
|
// blockchain.GetBlock function call.
|
|
type Block struct{}
|
|
|
|
// GetTransactionCount returns the number of recorded transactions in the given
|
|
// block. It uses `Neo.Block.GetTransactionCount` syscall internally.
|
|
func GetTransactionCount(b Block) int {
|
|
return 0
|
|
}
|
|
|
|
// GetTransactions returns a slice of transactions recorded in the given block.
|
|
// It uses `Neo.Block.GetTransactions` syscall internally.
|
|
func GetTransactions(b Block) []blockchain.Transaction {
|
|
return []blockchain.Transaction{}
|
|
}
|