Skip to content

Commit

Permalink
Merge pull request #28 from meshplus/fix/eth_hash_marshal
Browse files Browse the repository at this point in the history
Fix/eth hash marshal
  • Loading branch information
Karenlrx authored Nov 8, 2022
2 parents 3dfbc57 + bdda18e commit c174c76
Show file tree
Hide file tree
Showing 6 changed files with 2,466 additions and 54 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ go 1.13

require (
github.com/ethereum/go-ethereum v1.10.8
github.com/golang/mock v1.6.0
github.com/holiman/uint256 v1.2.0
github.com/meshplus/bitxhub-kit v1.2.1-0.20210902085548-07f4fa85bfc9
github.com/meshplus/bitxhub-model v1.2.1-0.20220815081129-609df840b044
github.com/meshplus/bitxhub-model v1.2.1-0.20221027120259-5b585809c2d6
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.8.0
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
Expand Down
573 changes: 522 additions & 51 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ledger/chain_ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ type ChainLedger interface {
PutBlock(height uint64, block *pb.Block) error

// GetBlock get block with height
GetBlock(height uint64) (*pb.Block, error)
GetBlock(height uint64, fullTx bool) (*pb.Block, error)

// GetBlockSign get the signature of block
GetBlockSign(height uint64) ([]byte, error)

// GetBlockByHash get the block using block hash
GetBlockByHash(hash *types.Hash) (*pb.Block, error)
GetBlockByHash(hash *types.Hash, fullTx bool) (*pb.Block, error)

// GetTransaction get the transaction using transaction hash
GetTransaction(hash *types.Hash) (pb.Transaction, error)
Expand Down
264 changes: 264 additions & 0 deletions ledger/mock_ledger/mock_chain_ledger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c174c76

Please sign in to comment.