Context-based Smart Contracts For Appendable-block Blockchains