Skip to content

Commit

Permalink
fix(server): block address ids bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed May 23, 2019
1 parent 0918fdf commit 36ea522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- cd server
- gem install bundler -v 2.0.1
- sudo apt-get update
- sudo apt-get install -y libsecp256k1-dev libsodium-dev
- sudo apt-get install -y libsodium-dev
install:
- git clone https://github.com/bitcoin-core/secp256k1.git && cd secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && make && ./tests && sudo make install && cd ..
- bundle install
Expand Down
2 changes: 1 addition & 1 deletion server/app/models/ckb_sync/persist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def build_ckb_transactions(local_block, transactions, sync_type, block_contained
build_cell_outputs(transaction["outputs"], ckb_transaction, addresses)
addresses_arr = addresses.to_a
ckb_transaction.addresses << addresses_arr
block_contained_addresses << addresses_arr.pluck(:id)
addresses_arr.each { |address| block_contained_addresses << address.id }
end

ckb_transactions
Expand Down

0 comments on commit 36ea522

Please sign in to comment.