Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6624 from EOSIO/refactor-fork-database
Browse files Browse the repository at this point in the history
Refactor fork database
  • Loading branch information
arhag committed Jan 28, 2019
2 parents 7436f60 + 8dc5a3a commit 1faf777
Show file tree
Hide file tree
Showing 332 changed files with 10,328 additions and 28,700 deletions.
14 changes: 14 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ steps:
sleep 5 && ln -s "$(pwd)" /data/job && cd /data/job && \
echo "+++ Building :hammer:" && \
echo 1 | ./eosio_build.sh && \
echo "+++ Validating:" && \
echo 1 | ./tools/validate_reflection.py plugins/ programs/ libraries/ --recurse --extension "cpp" --extension "hpp" -e && \
echo "--- Compressing build directory :compression:" && \
tar -pczf build.tar.gz build/
label: ":darwin: High Sierra Build"
Expand All @@ -17,6 +19,8 @@ steps:
sleep 5 && ln -s "$(pwd)" /data/job && cd /data/job && \
echo "+++ Building :hammer:" && \
echo 1 | ./eosio_build.sh && \
echo "+++ Validating:" && \
echo 1 | ./tools/validate_reflection.py plugins/ programs/ libraries/ --recurse --extension "cpp" --extension "hpp" -e && \
echo "--- Compressing build directory :compression:" && \
tar -pczf build.tar.gz build/
label: ":darwin: Mojave Build"
Expand All @@ -29,6 +33,8 @@ steps:
- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "+++ Validating:" && \
echo 1 | ./tools/validate_reflection.py plugins/ programs/ libraries/ --recurse --extension "cpp" --extension "hpp" -e && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":ubuntu: Build"
Expand All @@ -44,6 +50,8 @@ steps:
- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "+++ Validating:" && \
echo 1 | ./tools/validate_reflection.py plugins/ programs/ libraries/ --recurse --extension "cpp" --extension "hpp" -e && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":ubuntu: 18.04 Build"
Expand All @@ -59,6 +67,8 @@ steps:
- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "+++ Validating:" && \
echo 1 | ./tools/validate_reflection.py plugins/ programs/ libraries/ --recurse --extension "cpp" --extension "hpp" -e && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":fedora: Build"
Expand All @@ -74,6 +84,8 @@ steps:
- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "+++ Validating:" && \
echo 1 | ./tools/validate_reflection.py plugins/ programs/ libraries/ --recurse --extension "cpp" --extension "hpp" -e && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":centos: Build"
Expand All @@ -89,6 +101,8 @@ steps:
- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "+++ Validating:" && \
echo 1 | ./tools/validate_reflection.py plugins/ programs/ libraries/ --recurse --extension "cpp" --extension "hpp" -e && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":aws: Build"
Expand Down
15 changes: 9 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
<!-- PLEASE FILL OUT THE FOLLOWING MARKDOWN TEMPLATE -->
<!-- Give your PR a title that is sufficient to understand what is being changed. -->
<!-- PR title alone should be sufficient to understand changes. -->

## Change Description
<!-- Describe your changes, their justification, AND their impact. Reference issues or pull requests where possible (use '#XX' or 'GH-XX' where XX is the issue or pull request number). -->

<!-- Describe the change you made, the motivation for it, and the impact it will have. Reference issues or pull requests where possible (use '#XX' or 'GH-XX' where XX is the issue or pull request number). -->

## Consensus Changes

- [ ] Consensus Changes
<!-- checked [x] = Consensus changes; unchecked [ ] = no changes, ignore this section -->
<!-- If this PR introduces a change to the validation of blocks in the chain or consensus in general, please describe the impact. -->


## API Changes

- [ ] API Changes
<!-- checked [x] = API changes; unchecked [ ] = no changes, ignore this section -->
<!-- If this PR introduces API changes, please describe the changes here. What will developers need to know before upgrading to this version? -->


## Documentation Additions

<!-- List all the information that needs to be added to the documentation after merge. -->
- [ ] Documentation Additions
<!-- checked [x] = Documentation changes; unchecked [ ] = no changes, ignore this section -->
<!-- Describe what must be added to the documentation after merge. -->
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*.dylib
*.ll
*.bc
*.wasm
*.wast
*.wast.hpp
*.wasm
*.s
*.dot
*.abi.hpp
Expand Down
17 changes: 1 addition & 16 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,12 @@
path = libraries/appbase
url = https://github.com/eosio/appbase
ignore = dirty
[submodule "contracts/musl/upstream"]
path = contracts/musl/upstream
url = https://github.com/EOSIO/musl.git
branch = eosio
[submodule "contracts/libc++/upstream"]
path = contracts/libc++/upstream
url = https://github.com/EOSIO/libcxx.git
branch = eosio
[submodule "externals/binaryen"]
path = externals/binaryen
url = https://github.com/EOSIO/binaryen

[submodule "libraries/softfloat"]
path = libraries/softfloat
url = https://github.com/eosio/berkeley-softfloat-3
[submodule "externals/magic_get"]
path = externals/magic_get
url = https://github.com/EOSIO/magic_get
[submodule "libraries/fc"]
path = libraries/fc
url = https://github.com/EOSIO/fc
[submodule "libraries/wabt"]
path = libraries/wabt
url = http://github.com/EOSIO/wabt
url = https://github.com/EOSIO/wabt
32 changes: 13 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
set(BUILD_DOXYGEN FALSE CACHE BOOL "Build doxygen documentation on every make")
set(BUILD_MONGO_DB_PLUGIN FALSE CACHE BOOL "Build mongo database plugin")

#set (USE_PCH 1)

if (USE_PCH)
include (cotire)
endif(USE_PCH)

# add defaults for openssl
if ("${OPENSSL_ROOT_DIR}" STREQUAL "")
if (NOT "$ENV{OPENSSL_ROOT_DIR}" STREQUAL "")
Expand Down Expand Up @@ -207,7 +201,6 @@ if(ENABLE_COVERAGE_TESTING)
endif()

include(utils)
add_subdirectory( externals )

if ("${CORE_SYMBOL_NAME}" STREQUAL "")
set( CORE_SYMBOL_NAME "SYS" )
Expand All @@ -227,9 +220,7 @@ endif()

message( STATUS "Using '${EOSIO_ROOT_KEY}' as public key for 'eosio' account" )

include(wasm)
add_subdirectory( libraries )
add_subdirectory( contracts )
add_subdirectory( plugins )
add_subdirectory( programs )
add_subdirectory( scripts )
Expand Down Expand Up @@ -270,16 +261,19 @@ configure_file(${CMAKE_SOURCE_DIR}/libraries/fc/secp256k1/upstream/COPYING
${CMAKE_BINARY_DIR}/licenses/eosio/LICENSE.secp256k1 COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/fc/src/network/LICENSE.go
${CMAKE_BINARY_DIR}/licenses/eosio/LICENSE.go COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/externals/binaryen/LICENSE
${CMAKE_BINARY_DIR}/licenses/eosio/LICENSE.binaryen COPYONLY)

install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/)
install(FILES libraries/wabt/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.wabt)
install(FILES libraries/softfloat/COPYING.txt DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.softfloat)
install(FILES libraries/wasm-jit/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.wavm)
install(FILES libraries/fc/secp256k1/upstream/COPYING DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.secp256k1)
install(FILES externals/binaryen/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.binaryen)
install(FILES libraries/fc/src/network/LICENSE.go DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ )

install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ COMPONENT base)
install(FILES libraries/wabt/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.wabt COMPONENT base)
install(FILES libraries/softfloat/COPYING.txt DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.softfloat COMPONENT base)
install(FILES libraries/wasm-jit/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.wavm COMPONENT base)
install(FILES libraries/fc/secp256k1/upstream/COPYING DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ RENAME LICENSE.secp256k1 COMPONENT base)
install(FILES libraries/fc/src/network/LICENSE.go DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/eosio/ COMPONENT base)

add_custom_target(base-install
COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}"
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=base -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
USES_TERMINAL
)

include(package)
include(doxygen)
22 changes: 0 additions & 22 deletions CMakeModules/FindWasm.cmake

This file was deleted.

Loading

0 comments on commit 1faf777

Please sign in to comment.