Skip to content

Commit

Permalink
Upgrades node to use VM release build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashy5000 committed Jul 27, 2024
1 parent e8eb023 commit 6b859da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ contracts/target
nohup.out
contract.blockasm
language/cmake-build-debug
builds/node/node
builds/node/node
/perf.data
/perf.data.old
/flamegraph.svg
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ echo "Building node software... ('consensus client')"
go build -o builds/node/node
echo "Building smart contract software... ('execution client')"
cd contracts
cargo build
cargo build --release
cd ..
2 changes: 1 addition & 1 deletion node_util/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (c Contract) Execute() ([]Transaction, StateTransition, float64, error) {
}
contractStr := c.Contents
hash := sha256.Sum256([]byte(contractStr))
out, err := exec.Command("./contracts/target/debug/contracts", "contract.blockasm", hex.EncodeToString(hash[:])).Output()
out, err := exec.Command("./contracts/target/release/contracts", "contract.blockasm", hex.EncodeToString(hash[:])).Output()
if err != nil {
fmt.Println("Errored with output:", string(out))
fmt.Println("Contract hash:", hex.EncodeToString(hash[:]))
Expand Down

0 comments on commit 6b859da

Please sign in to comment.