コード例 #1
0
ファイル: js_test.go プロジェクト: Xiaoyang-Zhu/go-ethereum
func pendingTransactions(repl *testjethre, t *testing.T) (txc int64, err error) {
	var ethereum *eth.Ethereum
	repl.stack.Service(&ethereum)

	txs := ethereum.TxPool().GetTransactions()
	return int64(len(txs)), nil
}